1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00
Amitay Isaacs 2f2e341370 tests: test_wrap needs to set TEST_SCRIPTS_DIR
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 79e979d67e3a2a5a13ef8fd2ef8f56331ec51558)
2012-04-27 15:40:43 +10:00

19 lines
375 B
Bash
Executable File

#!/bin/bash
# Execute the given command. The intention is that it is a function
# from "${TEST_SCRIPTS_DIR}/integration.bash".
PATH="$(dirname $0):${PATH}"
TEST_SCRIPTS_DIR=$(dirname $0)
f="ctdb_bench"
if [ ! $(which $f >/dev/null 2>&1) ] ; then
d=$(dirname $(dirname $0))/bin
[ -x "$d/$f" ] && PATH="$d:$PATH"
fi
. "${TEST_SCRIPTS_DIR}/integration.bash"
"$@"