mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
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:
committed by
Armin Kuster
parent
9d21e48053
commit
3b0659d50f
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user