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

Make non-executed tests that are not in the allow list an error

* Turn the warnings produced when finding non-executed tests that
   are not in the allow list into errors.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
This commit is contained in:
Tomás González
2023-08-22 09:40:23 +01:00
parent c895733349
commit 14b36ef54a

View File

@ -63,7 +63,10 @@ def analyze_coverage(results, outcomes, allow_list, full_coverage):
results.warning('Test case not executed: {}', key)
elif hits != 0 and key in allow_list:
# Test Case should be removed from the allow list.
results.warning('Allow listed test case was executed: {}', key)
if full_coverage:
results.error('Allow listed test case was executed: {}', key)
else:
results.warning('Allow listed test case was executed: {}', key)
def analyze_outcomes(outcomes, args):
"""Run all analyses on the given outcome collection."""