1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-05 19:35:48 +03:00

analyze_outcome: Simplify some code

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2023-10-26 09:37:40 +02:00
parent b26954375f
commit 9d9c2344ea

View File

@@ -103,12 +103,9 @@ def name_matches_pattern(name, str_or_re):
# The CI's python is too old for re.Pattern # The CI's python is too old for re.Pattern
#if isinstance(str_or_re, re.Pattern): #if isinstance(str_or_re, re.Pattern):
if not isinstance(str_or_re, str): if not isinstance(str_or_re, str):
if str_or_re.fullmatch(name): return str_or_re.fullmatch(name)
return True
else: else:
if str_or_re == name: return str_or_re == name
return True
return False
def analyze_driver_vs_reference(results: Results, outcomes, def analyze_driver_vs_reference(results: Results, outcomes,
component_ref, component_driver, component_ref, component_driver,