lava_helper_configs: Add workaround to ignore failing PSA Crypto tests
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I378838b780018a9a31de9d804d631b9c8aed7e96
diff --git a/lava_helper/lava_helper_configs.py b/lava_helper/lava_helper_configs.py
index 6046dc2..2b3e4ec 100644
--- a/lava_helper/lava_helper_configs.py
+++ b/lava_helper/lava_helper_configs.py
@@ -75,6 +75,21 @@
},
]
+# LAVA test-monitor definition for PSA API "crypto" testsuite, which has some
+# failing testcases which we don't want to treat as failures, so can't use
+# normal monitors_psaapitest_by_ut. Note that this is a flaky workaround
+# which will break if e.g. a new testcase is added. This issue should be
+# fixed on TF-M side instead
+monitors_psaapitest_crypto_workaround = [
+ {
+ 'name': 'psa_api_crypto_workaround',
+ 'start': 'Running..',
+ 'end': r"TOTAL TESTS : 63\r?\n.*?TOTAL PASSED : 51\r?\n",
+ 'pattern': '__ignored__',
+ 'fixup': {"pass": "PASSED", "fail": "FAILED", "skip": "SKIPPED"},
+ },
+]
+
# MPS2 with BL2 bootloader
# IMAGE0ADDRESS: 0x10000000
@@ -582,13 +597,13 @@
]
}, # CoreIPCTfmLevel3
-# 'PsaApiTest_Crypto': {
-# "binaries": {
-# "firmware": "tfm_s_ns_signed.bin",
-# "bootloader": "bl2.bin"
-# },
-# "monitors": monitors_psaapitest_by_ut,
-# }, # PsaApiTest_Crypto
+ 'PsaApiTest_Crypto': {
+ "binaries": {
+ "firmware": "tfm_s_ns_signed.bin",
+ "bootloader": "bl2.bin"
+ },
+ "monitors": monitors_psaapitest_crypto_workaround,
+ }, # PsaApiTest_Crypto
'PsaApiTest_STORAGE': {
"binaries": {
@@ -1130,13 +1145,13 @@
]
}, # CoreIPCTfmLevel3
-# 'PsaApiTest_Crypto': {
-# "binaries": {
-# "firmware": "bl2.axf",
-# "bootloader": "tfm_s_ns_signed.bin"
-# },
-# "monitors": monitors_psaapitest_by_ut,
-# }, # PsaApiTest_Crypto
+ 'PsaApiTest_Crypto': {
+ "binaries": {
+ "firmware": "bl2.axf",
+ "bootloader": "tfm_s_ns_signed.bin"
+ },
+ "monitors": monitors_psaapitest_crypto_workaround,
+ }, # PsaApiTest_Crypto
'PsaApiTest_STORAGE': {
"binaries": {