From cd8af99da8b5bd72389140bfdf7634a7834feed1 Mon Sep 17 00:00:00 2001 From: Joel McCracken Date: Tue, 24 Dec 2024 16:47:02 -0500 Subject: [PATCH] iproject root needed for ws_unset_settings, set --- ws_tool/test/test_helper/helper.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"