26_ctdb_config_check_error_on_unreachable_ctdb.sh to work with new
generic error message when trying to talk to disconnected node.
Signed-off-by: Martin Schwenke <martin@meltin.net>
PATH="${ctdb_test_scripts_dir}:${ctdb_tools_dir}:${PATH}"
+export CTDB_TIMEOUT=60
+
######################################################################
if [ -n "$CTDB_TEST_REMOTE_SCRIPTS_DIR" ] ; then
for i in ip disable enable "ban 0" unban listvars ; do
try_command_on_node -v 0 ! ctdb $i -n $test_node
- if [ "${out/${msg}}" != "$out" ] ; then
+ pat="ctdb_control error: 'ctdb_control to disconnected node'|Node $test_node is DISCONNECTED"
+
+ if egrep -q "$pat" <<<"$out" ; then
echo "OK: \"ctdb ${i}\" fails with \"disconnected node\""
else
echo "BAD: \"ctdb ${i}\" does not fail with \"disconnected node\""