]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Fix test failure when tests are installed
authorMartin Schwenke <mschwenke@ddn.com>
Wed, 4 Sep 2024 10:20:20 +0000 (20:20 +1000)
committerMartin Schwenke <martins@samba.org>
Sun, 6 Oct 2024 11:07:05 +0000 (11:07 +0000)
This currently works when tests are run in-tree.

However, when installed, use of an incorrect variable means it fails
to find statd_callout in the tests/ subdirectory.  Switch to using the
correct variable.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Sun Oct  6 11:07:05 UTC 2024 on atb-devel-224

ctdb/tests/UNIT/eventscripts/scripts/statd-callout.sh

index 868d4ac652c820138563eed3ae00a3bfec4225f1..f27d83760e1090ee567a86f6475af14d2417011d 100644 (file)
@@ -111,7 +111,7 @@ EOF
 
        case "$event" in
        add-client | del-client)
-               cmd="${CTDB_SCRIPTS_TESTS_LIBEXEC_DIR}/statd_callout"
+               cmd="${CTDB_SCRIPTS_HELPER_BINDIR}/statd_callout"
                unit_test "$cmd" "$event" "$@"
                ;;
        *)