Skip to content

Commit 8852248

Browse files
committed
Use the Python executable that CMake discovered during configuration
1 parent b28b5a5 commit 8852248

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/run_integrated_tests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export PYTHONPATH="@PROJECT_BINARY_DIR@/tools/pylib:@PROJECT_SOURCE_DIR@/tools/p
77
# Pre-build the project to prevent concurrent CMake race conditions
88
cmake --build "$PROJECT_ROOT"
99

10-
python3 -m pytest -m "not serial" --cache-clear -n auto --dist=loadgroup -q "$PROJECT_ROOT/tests/integrated" "$@"
11-
python3 -m pytest -m serial "$PROJECT_ROOT/tests/integrated" "$@"
10+
# Use the Python executable that CMake discovered during configuration
11+
"@Python3_EXECUTABLE@" -m pytest -m "not serial" --cache-clear -n auto --dist=loadgroup -q "$PROJECT_ROOT/tests/integrated" "$@"
12+
"@Python3_EXECUTABLE@" -m pytest -m serial "$PROJECT_ROOT/tests/integrated" "$@"

0 commit comments

Comments
 (0)