mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:35:06 -05:00
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:
@@ -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 $*:"
|
||||
|
||||
Reference in New Issue
Block a user