1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

tests: test_wrap can use $TEST_SCRIPTS_DIR for a little extra clarity

Also add a comment to explain what is being added to $PATH.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 704a3e3b83aff63e8f7b0650c141776ed2c1f047)
This commit is contained in:
Martin Schwenke 2012-04-20 13:57:01 +10:00
parent 2f2e341370
commit 05062d874a

View File

@ -7,9 +7,12 @@ 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="ctdb_bench"
if [ ! $(which $f >/dev/null 2>&1) ] ; then
d=$(dirname $(dirname $0))/bin
d=$(dirname "$TEST_SCRIPTS_DIR")/bin
[ -x "$d/$f" ] && PATH="$d:$PATH"
fi