test: set root ownership of tmp directory in system tests
Allow the tests to be started under a non-zero GID.
This commit is contained in:
parent
61da7d0913
commit
19da1d95a8
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ test_start() {
|
|||
su "$user" -s /bin/sh -c "touch $TEST_DIR/test" 2> /dev/null || \
|
||||
test_skip "$user cannot access $TEST_DIR"
|
||||
rm "$TEST_DIR/test"
|
||||
else
|
||||
chown 0:0 "$TEST_DIR" || test_skip "could not chown $TEST_DIR"
|
||||
fi
|
||||
|
||||
echo "Testing $*:"
|
||||
|
|
Loading…
Reference in a new issue