Skip to content

Commit

Permalink
tests: Tweak decoupler marker to run under mpirun
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Jun 7, 2024
1 parent 50e71f3 commit 9c40360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def parallel(item, m):
testname = get_testname(item)
# Only spew tracebacks on rank 0.
# Run xfailing tests to ensure that errors are reported to calling process
args = ["-n", "1", pyversion, "-m", "pytest", "--no-summary", "-s",
"--runxfail", "-qq", testname]
args = ["-n", "1", pyversion, "-m", "pytest", "-s", "--runxfail", "-qq", testname]
if nprocs > 1:
args.extend([":", "-n", "%d" % (nprocs - 1), pyversion, "-m", "pytest",
"-s", "--runxfail", "--tb=no", "-qq", "--no-summary", testname])
Expand Down Expand Up @@ -203,7 +202,8 @@ def decoupler(item, m):
testname = get_testname(item)

pyversion = sys.executable
call = [pyversion, "-m", "pytest", "--no-summary", "-s", "--runxfail", testname]
args = ["-n", "1", pyversion, "-m", "pytest", "-s", "--runxfail", testname]
call = [mpi_exec] + args

return set_run_reset(env_vars, call)

Expand Down

0 comments on commit 9c40360

Please sign in to comment.