ctdb-tests: Add ctdb-config wrapper stub for event script tests
authorMartin Schwenke <martin@meltin.net>
Wed, 2 May 2018 08:06:05 +0000 (18:06 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 17 May 2018 02:04:31 +0000 (04:04 +0200)
Create a shim helper around that simply invokes ctdb-config via its
real location.

This is needed because the event script tests set CTDB_HELPER_BINDIR
to the stubs directory because all other helpers used by event script
testing are currently stubs.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/eventscripts/stubs/ctdb-config [new file with mode: 0755]

diff --git a/ctdb/tests/eventscripts/stubs/ctdb-config b/ctdb/tests/eventscripts/stubs/ctdb-config
new file mode 100755 (executable)
index 0000000..818e3db
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec $VALGRIND "${CTDB_SCRIPTS_HELPER_BINDIR}/ctdb-config" "$@"