popd
# Run Python unit tests.
-python -m pytest python_packaging/src/test --junitxml=$PY_UNIT_TEST_XML
+python -m pytest python_packaging/src/test --junitxml=$PY_UNIT_TEST_XML --threads=2
# Note: Multiple pytest processes getting --junitxml output file argument
# may cause problems, so we set the option on only one of the launched processes.
# https://www.open-mpi.org/doc/v3.0/man1/mpiexec.1.php
PROGRAM=(`which python` -m mpi4py -m pytest \
-p no:cacheprovider \
- $PWD/python_packaging/src/test)
+ $PWD/python_packaging/src/test \
+ --threads=1)
# shellcheck disable=SC2068
if [ -x `which mpiexec` ]; then
PYTHONDONTWRITEBYTECODE=1 \
# https://www.open-mpi.org/doc/v3.0/man1/mpiexec.1.php
PROGRAM=(`which python` -m mpi4py -m pytest \
-p no:cacheprovider \
- $PWD/python_packaging/test)
+ $PWD/python_packaging/test \
+ --threads=1)
# shellcheck disable=SC2068
if [ -x `which mpiexec` ]; then
PYTHONDONTWRITEBYTECODE=1 \