summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2024-12-20 16:04:41 +0200
committerArmin Kuster <akuster808@gmail.com>2024-12-27 11:28:23 -0500
commit1f7cc51443cb6baa1de519df1a9c570b3f5cae2a (patch)
treeced243a46aade4d3d9e12eb89dd037eeb7e54e3c
parent08c712d672277cd6888a24d2d0405678527f9433 (diff)
downloadmeta-security-1f7cc51443cb6baa1de519df1a9c570b3f5cae2a.tar.gz
oeqa runtime ima.py: skip without "integrity" in DISTRO_FEATURES
ima and meta-integrity are not enabled without and the test fails. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-integrity/lib/oeqa/runtime/cases/ima.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-integrity/lib/oeqa/runtime/cases/ima.py b/meta-integrity/lib/oeqa/runtime/cases/ima.py
index 6b361ca..23d9b6a 100644
--- a/meta-integrity/lib/oeqa/runtime/cases/ima.py
+++ b/meta-integrity/lib/oeqa/runtime/cases/ima.py
@@ -27,6 +27,7 @@ class IMACheck(OERuntimeTestCase):
27 27
28 28
29 @OETestDepends(['ssh.SSHTest.test_ssh']) 29 @OETestDepends(['ssh.SSHTest.test_ssh'])
30 @skipIfNotFeature('integrity','Test requires "integrity" in DISTRO_FEATURES')
30 def test_ima_enabled(self): 31 def test_ima_enabled(self):
31 ''' Test if IMA policy is loaded before systemd starts''' 32 ''' Test if IMA policy is loaded before systemd starts'''
32 33