Skip to content

Commit 2f4e2a5

Browse files
committed
adding mpi and nprocs info in comment in failed tests file
1 parent 092a87b commit 2f4e2a5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

testflo/filters.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ def get_iter(self, input_iter):
4040
for result in input_iter:
4141
if result.status == 'FAIL' and not result.expected_fail:
4242
with open(self.outfile, 'a') as f:
43-
print(result.spec, file=f)
43+
if result.nprocs > 1:
44+
spec = f"{result.spec} # mpi, nprocs={result.nprocs}"
45+
else:
46+
spec = result.spec
47+
print(spec, file=f)
4448
yield result

0 commit comments

Comments
 (0)