mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 79e979d67e3a2a5a13ef8fd2ef8f56331ec51558)
19 lines
375 B
Bash
Executable File
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"
|
|
|
|
"$@"
|