Skip to content

Commit 37895ac

Browse files
committed
Allow for passing mpi options to the python tests
1 parent 51e3ddb commit 37895ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/python/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
@pytest.fixture
77
def mpi_exec(request):
8-
"""Get MPI executor from pytest option."""
8+
"""Get MPI executor and options from pytest options."""
99
executor = request.config.getoption("--mpi-exec")
10+
options = request.config.getoption("--mpi-opt")
1011
if executor != "mpirun":
11-
return f"{executor} -n "
12-
return "mpirun -np "
12+
return f"{executor} {options} -n"
13+
return f"mpirun {options} -np"

0 commit comments

Comments
 (0)