1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

tests/complex: Fix broken ctdb_test_check_real_cluster()

It doesn't set $h at all...

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 3f268805c14c51f23024267916eae161bada8a0e)
This commit is contained in:
Martin Schwenke 2012-07-03 13:05:58 +10:00 committed by Amitay Isaacs
parent e2a604f93c
commit cb8517ed4c

View File

@ -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."