summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/complex/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/complex/scripts')
-rw-r--r--ctdb/tests/complex/scripts/local.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/tests/complex/scripts/local.bash b/ctdb/tests/complex/scripts/local.bash
index 0976c3f9de..eb4c41c8b6 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."