]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Fix tunables test when run as root
authorMartin Schwenke <mschwenke@ddn.com>
Sat, 7 Feb 2026 04:51:06 +0000 (15:51 +1100)
committerVolker Lendecke <vl@samba.org>
Mon, 9 Feb 2026 11:17:41 +0000 (11:17 +0000)
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 <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/tests/UNIT/cunit/tunable_test_001.sh

index a639c8772cb7ec2770b623ed5ceb4df0000e5786..22df9fa405953887a68b20b8f6684f8177787fc4 100755 (executable)
@@ -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 <<EOF
 ctdb_tunable_load_file: Failed to open ${tfile}