analyze_outcome: only warn on ignored tests that pass
The previous check also warned when on tests that were already skipped in the reference config, which are not really a problem. The purpose of this "uselessly ignored" check is to make sure that the ignore list (together with the config common to driver and reference in all.sh) always correct reflects what works or doesn't in driver-only builds. For this it's enough to warn when a test is ignored but passing. The previous, stricter check, was causing issues like: Error: uselessly ignored: test_suite_pkcs12;PBE Encrypt, pad = 8 (PKCS7 padding disabled) Error: uselessly ignored: test_suite_pkcs12;PBE Decrypt, (Invalid padding & PKCS7 padding disabled) Error: uselessly ignored: test_suite_pkcs5;PBES2 Decrypt (Invalid padding & PKCS7 padding disabled) These are skipped in the reference config because is has PKCS7 padding enabled, and that's OK. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
cd84a290a9
commit
c51c411cc1
1 changed files with 4 additions and 6 deletions
|
@ -145,12 +145,10 @@ def analyze_driver_vs_reference(results: Results, outcomes,
|
||||||
if component_ref in entry:
|
if component_ref in entry:
|
||||||
reference_test_passed = True
|
reference_test_passed = True
|
||||||
seen_reference_passing = True
|
seen_reference_passing = True
|
||||||
if(reference_test_passed and not driver_test_passed):
|
if reference_test_passed and not driver_test_passed and not ignored:
|
||||||
if not ignored:
|
results.error("PASS -> SKIP/FAIL: {}", key)
|
||||||
results.error("PASS -> SKIP/FAIL: {}", key)
|
if ignored and driver_test_passed:
|
||||||
else:
|
results.error("uselessly ignored: {}", key)
|
||||||
if ignored:
|
|
||||||
results.error("uselessly ignored: {}", key)
|
|
||||||
|
|
||||||
if not seen_reference_passing:
|
if not seen_reference_passing:
|
||||||
results.error("no passing test in reference component: bad outcome file?")
|
results.error("no passing test in reference component: bad outcome file?")
|
||||||
|
|
Loading…
Reference in a new issue