From: Martin Schwenke Date: Fri, 16 Feb 2018 03:27:39 +0000 (+1100) Subject: ctdb-tests: Depend on setup_ctdb_base() to install events.d/ X-Git-Tag: talloc-2.1.12~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98bd5b6a41f656802d075c50be7c5b766333080c;p=thirdparty%2Fsamba.git ctdb-tests: Depend on setup_ctdb_base() to install events.d/ This directory is only used by simple tests when running against local daemons. Moving it to simple/etc-ctdb/events.d/ means that it is automatically copied by setup_ctdb_base(). Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/events.d/00.test b/ctdb/tests/simple/etc-ctdb/events.d/00.test similarity index 100% rename from ctdb/tests/events.d/00.test rename to ctdb/tests/simple/etc-ctdb/events.d/00.test diff --git a/ctdb/tests/simple/scripts/local_daemons.bash b/ctdb/tests/simple/scripts/local_daemons.bash index a0fae2a32d4..07758fb74fb 100644 --- a/ctdb/tests/simple/scripts/local_daemons.bash +++ b/ctdb/tests/simple/scripts/local_daemons.bash @@ -134,16 +134,6 @@ setup_public_addresses () setup_ctdb () { - # When running certain tests we add and remove eventscripts, so we - # need to be able to modify the events.d/ directory. Therefore, - # we use a temporary events.d/ directory under $TEST_VAR_DIR. We - # copy the actual test eventscript(s) in there from the original - # events.d/ directory that sits alongside $TEST_SCRIPT_DIR. - local top=$(dirname "$TEST_SCRIPTS_DIR") - local events_d="${top}/events.d" - mkdir -p "${TEST_VAR_DIR}/events.d" - cp -p "${events_d}/"* "${TEST_VAR_DIR}/events.d/" - setup_nodes >"$CTDB_NODES" || return 1 # If there are (strictly) greater than 2 nodes then we'll @@ -188,7 +178,6 @@ setup_ctdb () CTDB_RECOVERY_LOCK="${SIMPLE_TESTS_VAR_DIR}/rec.lock" CTDB_NODES="$CTDB_NODES" CTDB_NODE_ADDRESS="${node_ip}" -CTDB_EVENT_SCRIPT_DIR="${TEST_VAR_DIR}/events.d" CTDB_LOGGING="file:${node_dir}/log.ctdb" CTDB_DEBUGLEVEL=INFO CTDB_DBDIR="${db_dir}" diff --git a/ctdb/wscript b/ctdb/wscript index 065f610b8d9..74e37ead86d 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -880,7 +880,6 @@ def build(bld): 'complex', 'cunit', 'eventd', - 'events.d', 'eventscripts', 'onnode', 'shellcheck',