summaryrefslogtreecommitdiff
path: root/ctdb/tests/INTEGRATION/simple
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-09-18 11:43:53 +1000
committerAmitay Isaacs <amitay@samba.org>2019-10-04 09:41:28 +0000
commit5ad356c282044db251c395db06900b249ff07544 (patch)
treecda75080afc893001221ba29510bc52f0aa9f75f /ctdb/tests/INTEGRATION/simple
parent59055f4da1ac4747c771a8acf2392b5e4599679b (diff)
downloadsamba-5ad356c282044db251c395db06900b249ff07544.tar.gz
ctdb-tests: Add function ctdb_test_skip_on_cluster()
Use it in relevant tests. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/INTEGRATION/simple')
-rwxr-xr-xctdb/tests/INTEGRATION/simple/cluster.012.reclock_command.sh5
-rwxr-xr-xctdb/tests/INTEGRATION/simple/cluster.091.version_check.sh5
-rwxr-xr-xctdb/tests/INTEGRATION/simple/eventscripts.001.zero_scripts.sh5
-rwxr-xr-xctdb/tests/INTEGRATION/simple/eventscripts.090.debug_hung.sh7
4 files changed, 5 insertions, 17 deletions
diff --git a/ctdb/tests/INTEGRATION/simple/cluster.012.reclock_command.sh b/ctdb/tests/INTEGRATION/simple/cluster.012.reclock_command.sh
index 1e1bb1b588f..8199b079610 100755
--- a/ctdb/tests/INTEGRATION/simple/cluster.012.reclock_command.sh
+++ b/ctdb/tests/INTEGRATION/simple/cluster.012.reclock_command.sh
@@ -15,10 +15,7 @@ EOF
set -e
-if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
- echo "SKIPPING this test - only runs against local daemons"
- exit 0
-fi
+ctdb_test_skip_on_cluster
echo "Starting CTDB with recovery lock command configured..."
ctdb_test_init -R
diff --git a/ctdb/tests/INTEGRATION/simple/cluster.091.version_check.sh b/ctdb/tests/INTEGRATION/simple/cluster.091.version_check.sh
index 5329b49b23a..fccc802b370 100755
--- a/ctdb/tests/INTEGRATION/simple/cluster.091.version_check.sh
+++ b/ctdb/tests/INTEGRATION/simple/cluster.091.version_check.sh
@@ -11,10 +11,7 @@ EOF
set -e
-if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
- echo "SKIPPING this test - only runs against local daemons"
- exit 0
-fi
+ctdb_test_skip_on_cluster
ctdb_test_init
diff --git a/ctdb/tests/INTEGRATION/simple/eventscripts.001.zero_scripts.sh b/ctdb/tests/INTEGRATION/simple/eventscripts.001.zero_scripts.sh
index 2e536da5e6a..4e55319000e 100755
--- a/ctdb/tests/INTEGRATION/simple/eventscripts.001.zero_scripts.sh
+++ b/ctdb/tests/INTEGRATION/simple/eventscripts.001.zero_scripts.sh
@@ -14,10 +14,7 @@ EOF
set -e
-if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
- echo "SKIPPING this test - only runs against local daemons"
- exit 0
-fi
+ctdb_test_skip_on_cluster
ctdb_test_init --no-event-scripts
diff --git a/ctdb/tests/INTEGRATION/simple/eventscripts.090.debug_hung.sh b/ctdb/tests/INTEGRATION/simple/eventscripts.090.debug_hung.sh
index af045cf785e..9a42af80946 100755
--- a/ctdb/tests/INTEGRATION/simple/eventscripts.090.debug_hung.sh
+++ b/ctdb/tests/INTEGRATION/simple/eventscripts.090.debug_hung.sh
@@ -19,15 +19,12 @@ EOF
set -e
+ctdb_test_skip_on_cluster
+
ctdb_test_init
cluster_is_healthy
-if [ -z "$TEST_LOCAL_DAEMONS" ] ; then
- echo "SKIPPING this test - only runs against local daemons"
- exit 0
-fi
-
# This is overkill but it at least provides a valid test node
select_test_node_and_ips