From 429502186a70f4220c8597d68a3306a073a33c4c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 6 Sep 2019 20:03:36 +1000 Subject: [PATCH] ctdb-tests: Drop unused code from onnode unit test ctdb stub Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/onnode/stubs/ctdb | 14 -------------- 1 file changed, 14 deletions(-) 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 -- 2.47.3