Skip to content

Commit 681c4c4

Browse files
committed
junit - drop unused arg
1 parent 4c789ea commit 681c4c4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/junit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def create_argparser() -> argparse.ArgumentParser:
2424
help='Output mode, junit or tap',
2525
default=RunMode.JUNIT)
2626
parser.add_argument('-n', '--nproc', type=int, default=1, help='number of MPI processes')
27-
parser.add_argument('-o', '--output', type=Optional[Path], default=None, help='Output file to write test')
2827
parser.add_argument('-b', '--junit-batch', type=str, default='', help='Name of JUnit batch for output file')
2928
parser.add_argument('-np', '--pool-size', type=int, default=1, help='Number of test cases to run in parallel')
3029
parser.add_argument('-s', '--search', type=str, default='.*',
@@ -213,6 +212,6 @@ def check_allowed_stdout(self, test: str) -> bool:
213212

214213
# write output and check for failures
215214
if args.mode is RunMode.JUNIT:
216-
write_junit_xml(result, args.output, args.junit_batch)
215+
write_junit_xml(result, args.junit_batch)
217216
if has_failures(result):
218217
sys.exit(1)

tests/junit_common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -817,15 +817,14 @@ def run_tests(test: str, ceed_backends: List[str], mode: RunMode, nproc: int,
817817
return TestSuite(test, test_cases)
818818

819819

820-
def write_junit_xml(test_suite: TestSuite, output_file: Optional[Path], batch: str = '') -> None:
820+
def write_junit_xml(test_suite: TestSuite, batch: str = '') -> None:
821821
"""Write a JUnit XML file containing the results of a `TestSuite`
822822
823823
Args:
824824
test_suite (TestSuite): JUnit `TestSuite` to write
825-
output_file (Optional[Path]): Path to output file, or `None` to generate automatically as `build/{test_suite.name}{batch}.junit`
826825
batch (str): Name of JUnit batch, defaults to empty string
827826
"""
828-
output_file = output_file or Path('build') / (f'{test_suite.name}{batch}.junit')
827+
output_file = Path('build') / (f'{test_suite.name}{batch}.junit')
829828
output_file.write_text(to_xml_report_string([test_suite]))
830829

831830

0 commit comments

Comments
 (0)