mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ctdb-tests: Support testing scripts that change directory
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
2aeb518637
commit
9317d82c19
@ -9,6 +9,10 @@ EVENTSCRIPTS_PATH=""
|
|||||||
|
|
||||||
if [ -d "${TEST_SUBDIR}/stubs" ] ; then
|
if [ -d "${TEST_SUBDIR}/stubs" ] ; then
|
||||||
EVENTSCRIPTS_PATH="${TEST_SUBDIR}/stubs"
|
EVENTSCRIPTS_PATH="${TEST_SUBDIR}/stubs"
|
||||||
|
case "$EVENTSCRIPTS_PATH" in
|
||||||
|
/*) : ;;
|
||||||
|
*) EVENTSCRIPTS_PATH="${PWD}/${EVENTSCRIPTS_PATH}" ;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export EVENTSCRIPTS_PATH
|
export EVENTSCRIPTS_PATH
|
||||||
|
@ -30,6 +30,10 @@ if [ -f "${_test_dir}/run_tests.sh" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
_test_bin_dir="${TEST_BIN_DIR:-${ctdb_dir}/bin}"
|
_test_bin_dir="${TEST_BIN_DIR:-${ctdb_dir}/bin}"
|
||||||
|
case "$_test_bin_dir" in
|
||||||
|
/*) : ;;
|
||||||
|
*) _test_bin_dir="${PWD}/${_test_bin_dir}" ;;
|
||||||
|
esac
|
||||||
if [ -d "$_test_bin_dir" ] ; then
|
if [ -d "$_test_bin_dir" ] ; then
|
||||||
PATH="${_test_bin_dir}:$PATH"
|
PATH="${_test_bin_dir}:$PATH"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user