Skip to content

Commit

Permalink
iproject root needed for ws_unset_settings, set
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmccracken committed Dec 24, 2024
1 parent 343e385 commit cd8af99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ws_tool/test/test_helper/helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cd8af99

Please sign in to comment.