Skip to content

Commit 4435c83

Browse files
attempt to fix export issue causing test to flake/fail
1 parent 6aca719 commit 4435c83

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/helpers.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
# Get the repo root (parent of tests directory)
55
OSA_TEST_REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
6+
# Export repo path for tests that expect OSA_REPO_PATH to be set
7+
export OSA_REPO_PATH="$OSA_TEST_REPO_ROOT"
68

79
# Create a temporary test directory for each test
810
export TEST_TEMP_DIR=""
@@ -19,6 +21,8 @@ setup_test_env() {
1921

2022
# Export for use in subshells
2123
export TEST_TEMP_DIR TEST_LOG MOCK_HOME
24+
# Ensure OSA_REPO_PATH is available inside test environment
25+
export OSA_REPO_PATH="$OSA_TEST_REPO_ROOT"
2226
}
2327

2428
# Cleanup test environment

0 commit comments

Comments
 (0)