mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
tests: Ensure no dangling commit partials on remote depth pull
This was already being done on the local depth pull test, so this just adds the matching logic to the remote depth pull test.
This commit is contained in:
parent
0b90f1f9a8
commit
b4f06b47a3
@ -35,21 +35,31 @@ ${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin $(cat
|
||||
${CMD_PREFIX} ostree --repo=repo pull --depth=0 origin main
|
||||
find repo/objects -name '*.commit' | wc -l > commitcount
|
||||
assert_file_has_content commitcount "^1$"
|
||||
find repo/state -name '*.commitpartial' | wc -l > commitpartialcount
|
||||
assert_file_has_content commitpartialcount "^0$"
|
||||
|
||||
${CMD_PREFIX} ostree --repo=repo pull --depth=0 origin main
|
||||
find repo/objects -name '*.commit' | wc -l > commitcount
|
||||
assert_file_has_content commitcount "^1$"
|
||||
find repo/state -name '*.commitpartial' | wc -l > commitpartialcount
|
||||
assert_file_has_content commitpartialcount "^0$"
|
||||
|
||||
${CMD_PREFIX} ostree --repo=repo pull --depth=1 origin main
|
||||
find repo/objects -name '*.commit' | wc -l > commitcount
|
||||
assert_file_has_content commitcount "^2$"
|
||||
find repo/state -name '*.commitpartial' | wc -l > commitpartialcount
|
||||
assert_file_has_content commitpartialcount "^0$"
|
||||
|
||||
${CMD_PREFIX} ostree --repo=repo pull --depth=1 origin main
|
||||
find repo/objects -name '*.commit' | wc -l > commitcount
|
||||
assert_file_has_content commitcount "^2$"
|
||||
find repo/state -name '*.commitpartial' | wc -l > commitpartialcount
|
||||
assert_file_has_content commitpartialcount "^0$"
|
||||
|
||||
${CMD_PREFIX} ostree --repo=repo pull --depth=-1 origin main
|
||||
find repo/objects -name '*.commit' | wc -l > commitcount
|
||||
assert_file_has_content commitcount "^3$"
|
||||
find repo/state -name '*.commitpartial' | wc -l > commitpartialcount
|
||||
assert_file_has_content commitpartialcount "^0$"
|
||||
|
||||
echo "ok pull depth"
|
||||
|
Loading…
Reference in New Issue
Block a user