File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ boutdata>=0.3.0
88zoidberg >= 0.2.2
99pytest
1010pytest-xdist
11+ pytest-forked
Original file line number Diff line number Diff line change @@ -7,6 +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
88cmake --build " $PROJECT_ROOT "
99
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" " $@ "
10+ # Use --forked to isolate C++/MPI state for every single test
11+ " @Python3_EXECUTABLE@" -m pytest --forked - m " not serial" --cache-clear -n auto --dist=loadgroup -q " $PROJECT_ROOT /tests/integrated" " $@ "
12+ " @Python3_EXECUTABLE@" -m pytest --forked - m serial " $PROJECT_ROOT /tests/integrated" " $@ "
You can’t perform that action at this time.
0 commit comments