diff options
author | Martin Schwenke <martin@meltin.net> | 2009-07-06 17:52:11 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2009-07-06 17:52:11 +1000 |
commit | 96b351735671668a6aee9faf012e6a6918c2ba4d (patch) | |
tree | b3ba2f429fe2092fd80e9d004e91153f960627ca /ctdb/tests/simple/02_ctdb_listvars.sh | |
parent | d90d54ea3e7123ae973d915961d80563e24e1fb1 (diff) | |
download | samba-96b351735671668a6aee9faf012e6a6918c2ba4d.tar.gz |
Test suite: better debug info when the cluster is unexpectedly unhealthy.
cluster_is_healthy() is now run locally in tests and internally causes
_cluster_is_healthy() to be run on node 0. When it detects that the
cluster is unhealthy and $ctdb_test_restart_scheduled is not true,
debug information is printed. This replaces the previous use of
$CTDB_TEST_CLEANING_UP.
To avoid spurious debug on expected restarts, added scheduled
restarts to several tests.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit ee7caae3a55a64fb50cd28fa2fd4663c5dd83b4f)
Diffstat (limited to 'ctdb/tests/simple/02_ctdb_listvars.sh')
-rwxr-xr-x | ctdb/tests/simple/02_ctdb_listvars.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/simple/02_ctdb_listvars.sh b/ctdb/tests/simple/02_ctdb_listvars.sh index 935e676b925..093c1578f47 100755 --- a/ctdb/tests/simple/02_ctdb_listvars.sh +++ b/ctdb/tests/simple/02_ctdb_listvars.sh @@ -31,7 +31,7 @@ ctdb_test_init "$@" set -e -onnode 0 $CTDB_TEST_WRAPPER cluster_is_healthy +cluster_is_healthy try_command_on_node -v 0 "$CTDB listvars" |