diff --git a/ws_tool/test/test_helper/helper.bash b/ws_tool/test/test_helper/helper.bash index 262df1bb..401001d7 100644 --- a/ws_tool/test/test_helper/helper.bash +++ b/ws_tool/test/test_helper/helper.bash @@ -3,11 +3,12 @@ _setup_common() { load 'test_helper/bats-support/load' load 'test_helper/bats-assert/load' - ws_unset_settings + # get the containing directory of this file # use $BATS_TEST_FILENAME instead of ${BASH_SOURCE[0]} or $0, # as those will point to the bats executable's location or the preprocessed file respectively PROJECT_ROOT="$( cd "$( dirname "$BATS_TEST_FILENAME" )/../../" >/dev/null 2>&1 && pwd )" + ws_unset_settings # echo "$PROJECT_ROOT, $BATS_TEST_FILENAME" >&3 # make executables in src/ visible to PATH PATH="$PROJECT_ROOT:/bin/:${PROJECT_ROOT}/ws_tool:$PATH"