set -e
-onnode 0 $CTDB_TEST_WRAPPER cluster_is_healthy
+cluster_is_healthy
+
+# Reset configuration
+ctdb_restart_when_done
var="RecoverTimeout"
check="${out#*= }"
if [ "$incr" != "$check" ] ; then
- echo "Nope, that didn't work. Restarting ctdb to get back into known state..."
- restart_ctdb
+ echo "Nope, that didn't work..."
exit 1
fi
echo "Look's good! Putting the old value back..."
cmd="$CTDB setvar $var $val"
try_command_on_node 0 $cmd
-
-echo "All done..."
-
-ctdb_test_exit