Skip to content

Commit 2398b4a

Browse files
committed
Refactor run_integrated_tests.sh (to use PROJECT_ROOT)
1 parent 8f86ebd commit 2398b4a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/run_integrated_tests.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
22

3-
HERE=$(cd "$(dirname "$0")" && pwd)
4-
export PYTHONPATH="$HERE/../tools/pylib"
3+
PROJECT_ROOT=$(cd "$(dirname "$0")/.." && pwd)
4+
5+
export PYTHONPATH="$PROJECT_ROOT/tools/pylib"
56

67
# Pre-build the project to prevent concurrent CMake race conditions
7-
cmake --build "$HERE/.."
8+
cmake --build "$PROJECT_ROOT"
89

9-
pytest -m "not serial" --cache-clear -n auto --dist=loadgroup -q "$HERE/integrated" "$@"
10-
pytest -m serial "$HERE/integrated" "$@"
10+
pytest -m "not serial" --cache-clear -n auto --dist=loadgroup -q "$PROJECT_ROOT/tests/integrated" "$@"
11+
pytest -m serial "$PROJECT_ROOT/tests/integrated" "$@"

0 commit comments

Comments
 (0)