From 5bde6bd8a6da0628233e9169e6ec24a09cde683e Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Fri, 8 Dec 2023 12:22:56 +0800 Subject: [PATCH] Revert "Catch ScriptOutputError in analyze_outcomes.py" Just abort the program if there is exception raised when collecting available test cases, so that we could easily found out what's going wrong. This reverts commit c353c5cfd5adecbb8774780bf3202a3a31473470. Signed-off-by: Pengyu Lv --- tests/scripts/analyze_outcomes.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/scripts/analyze_outcomes.py b/tests/scripts/analyze_outcomes.py index ab983ec697..ca349d38e9 100755 --- a/tests/scripts/analyze_outcomes.py +++ b/tests/scripts/analyze_outcomes.py @@ -85,12 +85,7 @@ def execute_reference_driver_tests(results: Results, ref_component: str, driver_ def analyze_coverage(results: Results, outcomes: Outcomes, allow_list: typing.List[str], full_coverage: bool) -> None: """Check that all available test cases are executed at least once.""" - try: - available = check_test_cases.collect_available_test_cases() - except check_test_cases.ScriptOutputError: - results.error("fail to collect available test cases") - return - + available = check_test_cases.collect_available_test_cases() for suite_case in available: hit = any(suite_case in comp_outcomes.successes or suite_case in comp_outcomes.failures