Handle gmxapi tmpi parameters better.
[alexxy/gromacs.git] / admin / ci-scripts / build-and-test-py-gmxapi-0.2.sh
index e7512e13e85072725ecdaaa28ddd63ccc0072f2d..828538828bd245a78a4ba4ab9fcaa1c48986179a 100644 (file)
@@ -39,7 +39,7 @@ pushd python_packaging/src
 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.
@@ -47,7 +47,8 @@ python -m pytest python_packaging/src/test --junitxml=$PY_UNIT_TEST_XML
 # 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 \
@@ -68,7 +69,8 @@ python -m pytest python_packaging/test --junitxml=$PY_ACCEPTANCE_TEST_XML
 # 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 \