From: Martin Schwenke Date: Fri, 22 Jul 2022 01:05:21 +0000 (+1000) Subject: ctdb-tests: Work around unreadable file test failure when root X-Git-Tag: tevent-0.13.0~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e831af7b25760dbbc2a0fc5366b36cd885aac838;p=thirdparty%2Fsamba.git ctdb-tests: Work around unreadable file test failure when root root can read files for which the mode prohibits reading, so this test case fails when run as root. Work around this when running as root. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/UNIT/cunit/tunable_test_001.sh b/ctdb/tests/UNIT/cunit/tunable_test_001.sh index 2ae87f6f1fd..c68cd69c64a 100755 --- a/ctdb/tests/UNIT/cunit/tunable_test_001.sh +++ b/ctdb/tests/UNIT/cunit/tunable_test_001.sh @@ -98,9 +98,15 @@ ok_tunable () test_case "Unreadable file" : >"$tfile" chmod a-r "$tfile" -required_error EINVAL <