ctdb-tests: Drop unused code from onnode unit test ctdb stub
authorMartin Schwenke <martin@meltin.net>
Fri, 6 Sep 2019 10:03:36 +0000 (20:03 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 17 Sep 2019 04:35:26 +0000 (04:35 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/onnode/stubs/ctdb

index e420d25e029a1b255530e82cad8f04a6072f4530..8d1f855e5dae55a67fe9ca0d3839c1ee37864c22 100755 (executable)
@@ -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