From 6b15fe247c4c026064a8f412011d484d3b74bfc7 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 28 Nov 2013 17:27:06 +1100 Subject: ctdb/tests/simple: Local daemons version of setup_ctdb() overrides setup_ctdb() doesn't need to do anything on a cluster. To avoid a conditional, just override it for local daemons. Signed-off-by: Martin Schwenke Reviewed-by: Michael Adam --- ctdb/tests/scripts/integration.bash | 5 ++--- ctdb/tests/simple/scripts/local_daemons.bash | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index 446c663bee..c13ee1f602 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -449,11 +449,10 @@ _restart_ctdb () fi } +# Nothing needed for a cluster. Override for local daemons. setup_ctdb () { - if [ -n "$CTDB_NODES_SOCKETS" ] ; then - daemons_setup - fi + : } restart_ctdb () diff --git a/ctdb/tests/simple/scripts/local_daemons.bash b/ctdb/tests/simple/scripts/local_daemons.bash index 0bc62c9dd0..b286b4d5b5 100644 --- a/ctdb/tests/simple/scripts/local_daemons.bash +++ b/ctdb/tests/simple/scripts/local_daemons.bash @@ -39,7 +39,7 @@ daemons_stop () rm -rf "${TEST_VAR_DIR}/test.db" } -daemons_setup () +setup_ctdb () { mkdir -p "${TEST_VAR_DIR}/test.db/persistent" -- cgit