From: Martin Schwenke Date: Wed, 14 Mar 2018 04:03:19 +0000 (+1100) Subject: ctdb-tests: Improve setting of helper paths X-Git-Tag: talloc-2.1.12~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78248adad61a22cb7bf0c16a67e5479e86179c7c;p=thirdparty%2Fsamba.git ctdb-tests: Improve setting of helper paths Make use of variables provided by script_install_paths.sh instead of reinventing the logic. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/tool/scripts/local.sh b/ctdb/tests/tool/scripts/local.sh index 38184f9f2a0..a419552cb34 100644 --- a/ctdb/tests/tool/scripts/local.sh +++ b/ctdb/tests/tool/scripts/local.sh @@ -72,13 +72,7 @@ setup_natgw () { debug "Setting up NAT gateway" - # Use in-tree binaries if running against local daemons. - # Otherwise CTDB need to be installed on all nodes. - if [ -n "$ctdb_dir" -a -d "${ctdb_dir}/bin" ] ; then - if [ -z "$CTDB_NATGW_HELPER" ] ; then - export CTDB_NATGW_HELPER="${ctdb_dir}/tools/ctdb_natgw" - fi - fi + export CTDB_NATGW_HELPER="${CTDB_SCRIPTS_TOOLS_HELPER_DIR}/ctdb_natgw" natgw_config_dir="${TEST_VAR_DIR}/natgw_config" mkdir -p "$natgw_config_dir" @@ -93,13 +87,7 @@ setup_lvs () { debug "Setting up LVS" - # Use in-tree binaries if running against local daemons. - # Otherwise CTDB need to be installed on all nodes. - if [ -n "$ctdb_dir" -a -d "${ctdb_dir}/bin" ] ; then - if [ -z "$CTDB_LVS_HELPER" ] ; then - export CTDB_LVS_HELPER="${ctdb_dir}/tools/ctdb_lvs" - fi - fi + export CTDB_LVS_HELPER="${CTDB_SCRIPTS_TOOLS_HELPER_DIR}/ctdb_lvs" lvs_config_dir="${TEST_VAR_DIR}/lvs_config" mkdir -p "$lvs_config_dir"