1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Break the loop when case hits

We don't care about the number of hits of the test cases,
so break the iteration when the case hits.

Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
Pengyu Lv
2023-11-28 10:56:29 +08:00
parent dd1d6a7cca
commit f28cf594b1

View File

@ -68,6 +68,7 @@ def analyze_coverage(results, outcomes, allow_list, full_coverage):
if suite_case in comp_outcomes["successes"] or \
suite_case in comp_outcomes["failures"]:
hits += 1
break
if hits == 0 and suite_case not in allow_list:
if full_coverage: