tests/basic-test.sh: enable repo-noperm test only for non-root user
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
a1a4d15119
commit
12bc9a336a
|
|
@ -369,6 +369,9 @@ cd test2-checkout
|
|||
touch should-not-be-fsynced
|
||||
$OSTREE commit -b test2 -s "Unfsynced commit" --fsync=false
|
||||
|
||||
# Run this test only as non-root user. When run as root, the chmod
|
||||
# won't have any effect.
|
||||
if test "$(id -u)" != "0"; then
|
||||
cd ${test_tmpdir}
|
||||
rm -f expected-fail error-message
|
||||
$OSTREE init --mode=archive-z2 --repo=repo-noperm
|
||||
|
|
@ -378,4 +381,4 @@ assert_has_file expected-fail
|
|||
assert_file_has_content error-message "Permission denied"
|
||||
chmod +w repo-noperm
|
||||
echo "ok unwritable repo was caught"
|
||||
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue