diff options
author | Martin Schwenke <martin@meltin.net> | 2019-09-06 20:03:36 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-09-17 04:35:26 +0000 |
commit | 429502186a70f4220c8597d68a3306a073a33c4c (patch) | |
tree | d4f2ab4a699b93281ff4cc94935ec5cac76ae2a5 /ctdb | |
parent | bb040f27985245449771a68606f0da2440ba1e7c (diff) | |
download | samba-429502186a70f4220c8597d68a3306a073a33c4c.tar.gz |
ctdb-tests: Drop unused code from onnode unit test ctdb stub
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/tests/onnode/stubs/ctdb | 14 |
1 files changed, 0 insertions, 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 |