diff --git a/ctdb/tests/complex/scripts/local.bash b/ctdb/tests/complex/scripts/local.bash index 0976c3f9de6..eb4c41c8b61 100644 --- a/ctdb/tests/complex/scripts/local.bash +++ b/ctdb/tests/complex/scripts/local.bash @@ -132,6 +132,9 @@ ctdb_test_check_real_cluster () [ -z "$TEST_LOCAL_DAEMONS" ] || \ die "ERROR: This test must be run against a real/virtual cluster, not local daemons." + local h=$(hostname) + + local i for i in $(onnode -q all hostname) ; do [ "$h" != "$i" ] || \ die "ERROR: This test must not be run from a cluster node."