tests: Fix calling of ctdb tool from test
[ctdb.git] / tests / simple / 54_ctdb_transaction_recovery.sh
index 13a92cccf4cd31f9a376df4ff9b9dbeaf119b10e..d796e94d8edce7a451d864ff688d1a0ca806fa9d 100755 (executable)
@@ -28,7 +28,7 @@ recovery_loop()
 
        while true ; do
                echo Recovery $COUNT
-               ctdb recover
+               try_command_on_node 0 $CTDB recover
                sleep 2
                COUNT=$((COUNT + 1))
        done
@@ -41,7 +41,7 @@ recovery_loop_start()
        ctdb_test_exit_hook_add "kill $RECLOOP_PID >/dev/null 2>&1"
 }
 
-. ctdb_test_functions.bash
+. "${TEST_SCRIPTS_DIR}/integration.bash"
 
 ctdb_test_init "$@"