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

Split test case collection from checks

Move the test case collection code out of check_test_cases.py and into its
own module. This allows outcome analysis to depend only on the new module
and not on check_test_cases.py.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2024-10-03 17:35:52 +02:00
parent 1e5dbd3c7c
commit c8c83d0303
3 changed files with 169 additions and 162 deletions

View File

@ -14,7 +14,7 @@ import subprocess
import os
import typing
import check_test_cases
import collect_test_cases
# `ComponentOutcomes` is a named tuple which is defined as:
@ -197,7 +197,7 @@ class CoverageTask(Task):
sys.stderr.write(cp.stdout.decode('utf-8'))
results.error("Failed \"make generated_files\" in tests. "
"Coverage analysis may be incorrect.")
available = check_test_cases.collect_available_test_cases()
available = collect_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