diff options
-rw-r--r-- | ctdb/tests/complex/scripts/local.bash | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ctdb/tests/complex/scripts/local.bash b/ctdb/tests/complex/scripts/local.bash index e3cd431e62..0976c3f9de 100644 --- a/ctdb/tests/complex/scripts/local.bash +++ b/ctdb/tests/complex/scripts/local.bash @@ -129,11 +129,12 @@ gratarp_sniff_wait_show () ctdb_test_check_real_cluster () { - if [ -z "$TEST_LOCAL_DAEMONS" ] ; then - return 0 - fi + [ -z "$TEST_LOCAL_DAEMONS" ] || \ + die "ERROR: This test must be run against a real/virtual cluster, not local daemons." - echo "ERROR: This test must be run on a real/virtual cluster, not local daemons." - return 1 + for i in $(onnode -q all hostname) ; do + [ "$h" != "$i" ] || \ + die "ERROR: This test must not be run from a cluster node." + done } |