]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Enable event script debugging in local daemon tests
authorMartin Schwenke <martin@meltin.net>
Mon, 11 Jun 2018 18:48:45 +0000 (04:48 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Jul 2018 06:51:22 +0000 (08:51 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash

index f681b18f6f1b6fd161decdc31b5e62a067d9ceb8..a47080574a9f6d0ce8b68bfe22f28744bbc32ccc 100644 (file)
@@ -115,7 +115,7 @@ setup_ctdb ()
        local pnn
        for pnn in $(seq 0 $(($TEST_LOCAL_DAEMONS - 1))) ; do
                setup_ctdb_base "$SIMPLE_TESTS_VAR_DIR" "node.${pnn}" \
-                               functions notify.sh
+                               functions notify.sh debug-hung-script.sh
 
                cp "$nodes_file" "${CTDB_BASE}/nodes"
 
@@ -153,6 +153,9 @@ setup_ctdb ()
        volatile database directory = ${db_dir}/volatile
        persistent database directory = ${db_dir}/persistent
        state database directory = ${db_dir}/state
+
+[event]
+       debug script = ${CTDB_BASE}/debug-hung-script.sh
 EOF
        done
 }