mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
tests: Fix writable repo test
When I removed the `transaction` symlink, that made this test start failing. Fix it by doing `chmod` on `repo/objects`, which is what the core `ostree_repo_is_writable()` looks at.
This commit is contained in:
parent
c10bc00249
commit
3f9fa58213
@ -394,10 +394,10 @@ if test "$(id -u)" != "0"; then
|
||||
cd ${test_tmpdir}
|
||||
rm -f expected-fail error-message
|
||||
$OSTREE init --mode=archive-z2 --repo=repo-noperm
|
||||
chmod -w repo-noperm
|
||||
chmod -w repo-noperm/objects
|
||||
$OSTREE --repo=repo-noperm pull-local repo 2> error-message || touch expected-fail
|
||||
assert_has_file expected-fail
|
||||
assert_file_has_content error-message "Permission denied"
|
||||
chmod +w repo-noperm
|
||||
chmod +w repo-noperm/objects
|
||||
echo "ok unwritable repo was caught"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user