From e831af7b25760dbbc2a0fc5366b36cd885aac838 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 22 Jul 2022 11:05:21 +1000 Subject: [PATCH] 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 --- ctdb/tests/UNIT/cunit/tunable_test_001.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 <