diff options
Diffstat (limited to 'ctdb/tests/scripts/common.sh')
-rw-r--r-- | ctdb/tests/scripts/common.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/tests/scripts/common.sh b/ctdb/tests/scripts/common.sh index 754ea2e7e2..287fb71fd1 100644 --- a/ctdb/tests/scripts/common.sh +++ b/ctdb/tests/scripts/common.sh @@ -30,6 +30,10 @@ if [ -f "${_test_dir}/run_tests.sh" ] ; then fi _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 PATH="${_test_bin_dir}:$PATH" fi |