test-basic: Always chown back before doing assertion

Sometimes I rerun the tests for debugging in the same directory, and
having it be not writable breaks `rm * -rf`.
This commit is contained in:
Colin Walters 2015-05-13 22:17:26 -04:00
parent 3f9fa58213
commit 2c526046d8
1 changed files with 1 additions and 1 deletions

View File

@ -396,8 +396,8 @@ if test "$(id -u)" != "0"; then
$OSTREE init --mode=archive-z2 --repo=repo-noperm
chmod -w repo-noperm/objects
$OSTREE --repo=repo-noperm pull-local repo 2> error-message || touch expected-fail
chmod +w repo-noperm/objects
assert_has_file expected-fail
assert_file_has_content error-message "Permission denied"
chmod +w repo-noperm/objects
echo "ok unwritable repo was caught"
fi