From: Martin Schwenke Date: Thu, 12 Sep 2019 02:21:13 +0000 (+1000) Subject: ctdb-tests: Drop unused function ctdb_test_check_real_cluster() X-Git-Tag: talloc-2.3.1~492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e494eb3e8c054a7aa56d2f201459934d1248642a;p=thirdparty%2Fsamba.git ctdb-tests: Drop unused function ctdb_test_check_real_cluster() Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/CLUSTER/complex/scripts/local.bash b/ctdb/tests/CLUSTER/complex/scripts/local.bash index 20b3ba706b5..0e2addd5589 100644 --- a/ctdb/tests/CLUSTER/complex/scripts/local.bash +++ b/ctdb/tests/CLUSTER/complex/scripts/local.bash @@ -248,21 +248,6 @@ gratarp_sniff_wait_show () tcpdump_show } - -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." - done -} - ping_wrapper () { case "$*" in