N_MPI=`nproc` export PRTE_MCA_rmaps_default_mapping_policy=":oversubscribe" for py in `py3versions -s`; do # single process $py -m pytest --junitxml=test-output test/ # MPI test mpirun -n ${N_MPI} $py -m pytest --junitxml=test-output test/ done