Skip to content

Commit d6b4b7a

Browse files
authored
Merge pull request #126 from naylor-b/mpi_add_procs
added the number of procs to the (mpi) display on error messages from mpi tests
2 parents 4cbbec9 + 69eb223 commit d6b4b7a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

testflo/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ def dryrun(input_iter):
5959
for test in tests:
6060
if test.status is None:
6161
test.status = 'OK'
62-
print(test.spec)
62+
if test.nprocs > 1:
63+
spec = f"{test.spec} # mpi, nprocs={test.nprocs}"
64+
else:
65+
spec = test.spec
66+
print(spec)
6367
yield test
6468

6569

testflo/printer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _print_result(self, result):
4343

4444
if (self.verbose == 0 and (result.err_msg and show_msg)) or self.verbose > 0:
4545
if result.mpi and result.nprocs > 0:
46-
run_type = '(mpi) '
46+
run_type = f'(mpi {result.nprocs}) '
4747
elif result.isolated:
4848
run_type = '(isolated) '
4949
else:

0 commit comments

Comments
 (0)