From: Martin Schwenke Date: Sat, 7 Feb 2026 04:51:06 +0000 (+1100) Subject: ctdb-tests: Fix tunables test when run as root X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df6acb9760efa7b0f91e5b9bf6ec7cba1d5e31be;p=thirdparty%2Fsamba.git ctdb-tests: Fix tunables test when run as root When run as root, this test's expected output is missing: Loading tunables from ... at the top. Fix this by using the correct function to construct the expected output. Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- diff --git a/ctdb/tests/UNIT/cunit/tunable_test_001.sh b/ctdb/tests/UNIT/cunit/tunable_test_001.sh index a639c8772cb..22df9fa4059 100755 --- a/ctdb/tests/UNIT/cunit/tunable_test_001.sh +++ b/ctdb/tests/UNIT/cunit/tunable_test_001.sh @@ -165,7 +165,7 @@ chmod a-r "$tfile" uid=$(id -u) # root can read unreadable files if [ "$uid" = 0 ]; then - ok_tunable_defaults + ok_tunable else required_error EINVAL <