From: Miroslav Lichvar Date: Thu, 1 Jun 2023 09:56:29 +0000 (+0200) Subject: test: set root ownership of tmp directory in system tests X-Git-Tag: 4.4-pre2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19da1d95a80edd9ef77aae860e9e6551c6de1b3d;p=thirdparty%2Fchrony.git test: set root ownership of tmp directory in system tests Allow the tests to be started under a non-zero GID. --- diff --git a/test/system/test.common b/test/system/test.common index 7005c9e1..aa48ac67 100644 --- a/test/system/test.common +++ b/test/system/test.common @@ -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 $*:"