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 GitHub
parent e5f53a6250
commit fe3bfa482e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ $coverage_run $(which spack) python -c "import spack.pkg.builtin.mpileaks; repr(
# Run unit tests with code coverage
#-----------------------------------------------------------
# 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'"
fi