mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
96aef2371c
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13012 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
22 lines
540 B
Bash
Executable File
22 lines
540 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)
|
|
|
|
# We need the test binaries (i.e. tests/bin/) to be in $PATH. If they
|
|
# aren't already in $PATH then we know that tests/bin/ sits alongside
|
|
# tests/scripts/.
|
|
f="fetch_ring"
|
|
if [ ! $(which $f >/dev/null 2>&1) ] ; then
|
|
d=$(dirname "$TEST_SCRIPTS_DIR")/bin
|
|
[ -x "$d/$f" ] && PATH="$d:$PATH"
|
|
fi
|
|
|
|
. "${TEST_SCRIPTS_DIR}/integration.bash"
|
|
|
|
"$@"
|