Skip to content

Commit

Permalink
Make the testharness mpilauncher a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrper committed May 28, 2018
1 parent b8acaa3 commit afa8f96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/testharness.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def f(s):

# when calling genpbs, genpbs should take care of inserting the right -n <NPROCS> magic
if not self.genpbs:
s = s.replace('mpiexec ', 'mpiexec -n %(nprocs)d ' % {'nprocs': nprocs})
s = s.replace('mpiexec ', '%(launcher)s %(nprocs)d ' % {'launcher': options.launcher,
'nprocs': nprocs})

return s

Expand Down Expand Up @@ -400,6 +401,7 @@ def list(self):
parser.add_option("-f", "--file", dest="file", help="specific test case to run (by filename)", default="")
parser.add_option("--from-file", dest="from_file", default=None,
help="run tests listed in FROM_FILE (one test per line)")
parser.add_option("-m","--mpi-launcher", dest="launcher", default="mpiexec -n", help="launcher command for mpi processes")
parser.add_option("-n", "--threads", dest="thread_count", type="int",
help="number of tests to run at the same time", default=1)
parser.add_option("-v", "--valgrind", action="store_true", dest="valgrind")
Expand Down

0 comments on commit afa8f96

Please sign in to comment.