From ae575f0b66a6f635443e7d65f94cf3d4f11905a2 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 12 Dec 2024 21:07:59 -0700 Subject: [PATCH] Fix CLI output style --- dragon_runner/harness.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dragon_runner/harness.py b/dragon_runner/harness.py index 28e8fe7..9bcad64 100644 --- a/dragon_runner/harness.py +++ b/dragon_runner/harness.py @@ -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)