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 <pengyu.lv@arm.com>
This commit is contained in:
Pengyu Lv 2023-12-08 12:22:56 +08:00
parent c353c5cfd5
commit 5bde6bd8a6

View File

@ -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