Skip to content

Commit

Permalink
Fix CLI output style
Browse files Browse the repository at this point in the history
JustinMeimar committed Dec 13, 2024
1 parent 3eafffa commit ae575f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dragon_runner/harness.py
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ def post_executable_hook(self):
log(f"Failure Summary: ({len(self.failures)} tests)")
for result in self.failures:
result.log()
self.failures = []

def post_run_hook(self):
pass
@@ -99,7 +100,7 @@ def run(self) -> bool:
return (len(self.failures) == 0)

class RegularHarness(TestHarness):

def process_test_result(self, test_result: Optional[TestResult], counters: Dict[str, int]):
"""
Override the hook for regular run-specific implementation of counting passes
@@ -310,9 +311,6 @@ def process_test_result(self, test_result: Optional[TestResult], counters: Dict[
"""
Override the hook for regular run-specific implementation of counting passes
"""
if test_result.error_test:
raise RuntimeError("Can not run perf mode on error tests")

# only construct a column for the test file names once
if self.first_exec:
self.testfile_col.append(test_result.test.file)

0 comments on commit ae575f0

Please sign in to comment.