From: Martin Schwenke Date: Fri, 6 Sep 2019 10:03:36 +0000 (+1000) Subject: ctdb-tests: Drop unused code from onnode unit test ctdb stub X-Git-Tag: talloc-2.3.1~845 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=429502186a70f4220c8597d68a3306a073a33c4c;p=thirdparty%2Fsamba.git ctdb-tests: Drop unused code from onnode unit test ctdb stub Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/onnode/stubs/ctdb b/ctdb/tests/onnode/stubs/ctdb index e420d25e029..8d1f855e5da 100755 --- a/ctdb/tests/onnode/stubs/ctdb +++ b/ctdb/tests/onnode/stubs/ctdb @@ -2,8 +2,6 @@ # Fake ctdb client for onnode tests. -cmd=$(echo "$*" | sed -r -e 's@[[:space:]]+@_@g') - out="${ONNODE_TESTS_VAR_DIR}/ctdb.out" if [ -r "$out" ] ; then cat "$out" @@ -16,18 +14,6 @@ if [ -r "$out" ] ; then exit 0 fi -f="${ONNODE_TESTCASE_DIR}/ctdb.d/${cmd}.sh" -if [ -x "$f" ] ; then - "$f" - exit $? -fi - -f="${ONNODE_TESTCASE_DIR}/ctdb.d/${cmd}.out" -if [ -r "$f" ] ; then - cat "$f" - exit 0 -fi - echo "fake ctdb: no implementation for \"$*\"" exit 1