diff options
Diffstat (limited to 'ctdb/tests/INTEGRATION/database/transaction.010.loop_recovery.sh')
-rwxr-xr-x | ctdb/tests/INTEGRATION/database/transaction.010.loop_recovery.sh | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/ctdb/tests/INTEGRATION/database/transaction.010.loop_recovery.sh b/ctdb/tests/INTEGRATION/database/transaction.010.loop_recovery.sh index 9de6c34be40..4d5c1297fa9 100755 --- a/ctdb/tests/INTEGRATION/database/transaction.010.loop_recovery.sh +++ b/ctdb/tests/INTEGRATION/database/transaction.010.loop_recovery.sh @@ -1,13 +1,16 @@ -#!/usr/bin/env bash +#!/bin/bash -# Verify that the transaction_loop test succeeds with recoveries for -# replicated databases - -. "${TEST_SCRIPTS_DIR}/integration.bash" +test_info() +{ + cat <<EOF +Verify that the transaction_loop test succeeds with recoveries for replicated +databases. -set -e +Prerequisites: -ctdb_test_init +* An active CTDB cluster with at least 2 active nodes. +EOF +} recovery_loop() { @@ -28,6 +31,14 @@ recovery_loop_start() ctdb_test_exit_hook_add "kill $RECLOOP_PID >/dev/null 2>&1" } +. "${TEST_SCRIPTS_DIR}/integration.bash" + +ctdb_test_init + +set -e + +cluster_is_healthy + TESTDB="replicated_trans.tdb" try_command_on_node 0 "$CTDB attach $TESTDB replicated" |