Skip to content

Commit

Permalink
fixup! tests/prune: Factor out a helper for counting commits in the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Sep 12, 2017
1 parent 65258d3 commit f962e2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test-prune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ ${CMD_PREFIX} ostree --repo=repo pull --depth=-1 origin test
assert_repo_has_n_commits() {
repo=$1
count=$2

find ${repo}/objects -name '*.commit' | wc -l > commitcount
assert_file_has_content commitcount '^'${count}'$'
rm -f commitcount
assert_streq "$(find ${repo}/objects -name '*.commit' | wc -l)" "${count}"
}

${CMD_PREFIX} ostree prune --repo=repo --refs-only --depth=2 -v
Expand Down

0 comments on commit f962e2c

Please sign in to comment.