Fix PACKAGECONFIG check in Parsec OEQA tests

If PACKAGECONFIG is not defined in local.conf then
its default value is not included in cls.tc.td map.

Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Anton Antonov
2023-04-10 19:33:55 +01:00
committed by Armin Kuster
parent 9d21e48053
commit 3b0659d50f

View File

@@ -61,9 +61,18 @@ class ParsecTest(OERuntimeTestCase):
def check_packageconfig(self, prov):
""" Check that the require provider is included in Parsec """
if prov not in self.tc.td['PACKAGECONFIG:pn-parsec-service']:
if 'PACKAGECONFIG:pn-parsec-service' in self.tc.td.keys():
providers = self.tc.td['PACKAGECONFIG:pn-parsec-service']
else:
# PACKAGECONFIG is not defined in local.conf
# Let's use the default value
providers = "PKCS11 MBED-CRYPTO"
if 'tpm2' in self.tc.td['DISTRO_FEATURES']:
providers += " TPM"
if prov not in providers:
self.skipTest('%s provider is not included in Parsec. Parsec PACKAGECONFIG: "%s"' % \
(prov, self.tc.td['PACKAGECONFIG:pn-parsec-service']))
(prov, providers))
def check_packages(self, prov, packages):
""" Check for the required packages for Parsec providers software backends """