PSA test case generation: operation fail: skip never-implemented mechanisms

In `OpFail` test cases, remove the temporary hack whereby test cases were
not skipped when they should be due to a mechanism being never implemented.

This changes many test cases in
`test_suite_psa_crypto_op_fail.generated.data` to be commented out with a
"skipped because" reason instead of having a dependency on an algorithm or
an ECC/DH group that is not implemented.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2024-12-16 19:46:29 +01:00
parent fd0130576c
commit bc6f8ac304
-3
View File
@@ -268,9 +268,6 @@ class OpFail:
# symbol (e.g. PSA_WANT_KEY_TYPE_xxx) like we have here.
tc.negated_dependencies.update(not_deps)
tc.set_arguments(arguments)
# Temporarily preserve the former behavior where operation failure
# test cases were executed when they shouldn't have been.
tc.skip_reasons = []
return tc
def no_key_test_cases(