Run unit test in parallel again in CI (#45793)

The --trace-config option was failing for linux unit-tests,
so we were running serial.
This commit is contained in:
Massimiliano Culpo 2024-08-16 18:11:08 +02:00 committed by Harmen Stoppels
parent 9b32fb0beb
commit 683e50b8d9

View file

@ -52,7 +52,7 @@ if [[ "$SPACK_TEST_SOLVER" == "original" ]]; then
fi fi
# Check if xdist is available # Check if xdist is available
if python -m pytest --trace-config 2>&1 | grep xdist; then if python -m pytest -VV 2>&1 | grep xdist; then
export PYTEST_ADDOPTS="$PYTEST_ADDOPTS --dist loadfile --tx '${SPACK_TEST_PARALLEL:=3}*popen//python=./bin/spack-tmpconfig python -u ./bin/spack python'" export PYTEST_ADDOPTS="$PYTEST_ADDOPTS --dist loadfile --tx '${SPACK_TEST_PARALLEL:=3}*popen//python=./bin/spack-tmpconfig python -u ./bin/spack python'"
fi fi