From: Jonathan Lebon Date: Fri, 2 Jun 2017 17:41:33 +0000 (-0400) Subject: basic-test.sh: explicitly check for uncompressed objects X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~36^2~45 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f813ae74addef8784469a33f0b37c63f05596555;p=ostree.git basic-test.sh: explicitly check for uncompressed objects It's not enough to check that the dir exists, since that's done by default when we open the repo. We want to actually check that uncompressed objects were cached (i.e. the opposite of the earlier error path). Closes: #903 Approved by: cgwalters --- diff --git a/tests/basic-test.sh b/tests/basic-test.sh index a393d7fc..d56bcc62 100644 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -566,6 +566,10 @@ rm test2-checkout -rf ${CMD_PREFIX} ostree --repo=repo2 checkout -U test2 test2-checkout assert_file_has_content test2-checkout/baz/cow moo assert_has_dir repo2/uncompressed-objects-cache +ls repo2/uncompressed-objects-cache > ls.txt +if ! test -s ls.txt; then + assert_not_reached "repo didn't cache uncompressed objects" +fi # we're in archive mode, but the repo we pull-local from might be # bare-user-only, in which case, we skip these checks since bare-user-only # doesn't store permission bits