mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 08:56:50 -04:00
analyze_outcome: Simplify some code
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
b26954375f
commit
9d9c2344ea
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user