Skip to content

Commit 423827c

Browse files
authored
Merge pull request #1680 from CEED/jeremy/junit-missing-file
junit - error if output file not found
2 parents 68ce662 + ecceccc commit 423827c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/junit_common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ def run_test(index: int, test: str, spec: TestSpec, backend: str,
481481
ref_csv = (ref_csv.parent / ref_csv.name.rsplit('_', 1)[0]).with_suffix('.csv')
482482
if not ref_csv.is_file():
483483
test_case.add_failure_info('csv', output=f'{ref_csv} not found')
484+
elif not (Path.cwd() / csv_name).is_file():
485+
test_case.add_failure_info('csv', output=f'{csv_name} not found')
484486
else:
485487
diff: str = diff_csv(Path.cwd() / csv_name, ref_csv)
486488
if diff:
@@ -495,6 +497,8 @@ def run_test(index: int, test: str, spec: TestSpec, backend: str,
495497
ref_cgn = (ref_cgn.parent / ref_cgn.name.rsplit('_', 1)[0]).with_suffix('.cgns')
496498
if not ref_cgn.is_file():
497499
test_case.add_failure_info('cgns', output=f'{ref_cgn} not found')
500+
elif not (Path.cwd() / cgn_name).is_file():
501+
test_case.add_failure_info('csv', output=f'{cgn_name} not found')
498502
else:
499503
diff = diff_cgns(Path.cwd() / cgn_name, ref_cgn, cgns_tol=suite_spec.cgns_tol)
500504
if diff:

0 commit comments

Comments
 (0)