mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 22:20:58 +00:00
analyze_outcomes: minor code cleanup
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
51328162e6
commit
4da369f741
@ -112,15 +112,18 @@ def analyze_driver_vs_reference(results: Results, outcomes,
|
|||||||
hits = outcomes[key].hits() if key in outcomes else 0
|
hits = outcomes[key].hits() if key in outcomes else 0
|
||||||
if hits == 0:
|
if hits == 0:
|
||||||
continue
|
continue
|
||||||
# Skip ignored test suites
|
|
||||||
full_test_suite = key.split(';')[0] # retrieve full test suite name
|
# key is like "test_suite_foo.bar;Description of test case"
|
||||||
test_string = key.split(';')[1] # retrieve the text string of this test
|
(full_test_suite, test_string) = key.split(';')
|
||||||
test_suite = full_test_suite.split('.')[0] # retrieve main part of test suite name
|
test_suite = full_test_suite.split('.')[0] # retrieve main part of test suite name
|
||||||
|
# Skip fully-ignored test suites
|
||||||
if test_suite in ignored_suites or full_test_suite in ignored_suites:
|
if test_suite in ignored_suites or full_test_suite in ignored_suites:
|
||||||
continue
|
continue
|
||||||
|
# Skip ignored test cases inside test suites
|
||||||
if ((full_test_suite in ignored_test) and
|
if ((full_test_suite in ignored_test) and
|
||||||
(test_string in ignored_test[full_test_suite])):
|
(test_string in ignored_test[full_test_suite])):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Search for tests that run in reference component and not in driver component
|
# Search for tests that run in reference component and not in driver component
|
||||||
driver_test_passed = False
|
driver_test_passed = False
|
||||||
reference_test_passed = False
|
reference_test_passed = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user