From: Martin Schwenke Date: Thu, 22 Mar 2018 03:39:45 +0000 (+1100) Subject: ctdb-tests: Rename setup_config() to setup_tunable_config() X-Git-Tag: talloc-2.1.13~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1db96ce26e555f1faa879ea4b29816f4ab2eb1a7;p=thirdparty%2Fsamba.git ctdb-tests: Rename setup_config() to setup_tunable_config() Drop the "CTDB_SET_" prefix from variable names and add it back for now. When there is a better way of setting tunables then this function will support that. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/eventscripts/00.ctdb.setup.002.sh b/ctdb/tests/eventscripts/00.ctdb.setup.002.sh index e91f8d7e11c..fc1ec76996a 100755 --- a/ctdb/tests/eventscripts/00.ctdb.setup.002.sh +++ b/ctdb/tests/eventscripts/00.ctdb.setup.002.sh @@ -6,9 +6,9 @@ define_test "setup, known tunables in config" setup -setup_config <"$FAKE_CTDB_EXTRA_CONFIG" + while read line ; do + case "$line" in + \#*|"") : ;; + *) echo "CTDB_SET_${line}" + esac + done >"$FAKE_CTDB_EXTRA_CONFIG" } result_filter ()