diff mbox series

[meta-security,18/18] oeqa runtime ima.py: skip without "integrity" in DISTRO_FEATURES

Message ID 20241220140441.271395-19-mikko.rapeli@linaro.org
State New
Headers show
Series various updates | expand

Commit Message

Mikko Rapeli Dec. 20, 2024, 2:04 p.m. UTC
ima and meta-integrity are not enabled without and the test fails.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta-integrity/lib/oeqa/runtime/cases/ima.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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):
 
 
     @OETestDepends(['ssh.SSHTest.test_ssh'])
+    @skipIfNotFeature('integrity','Test requires "integrity" in DISTRO_FEATURES')
     def test_ima_enabled(self):
         ''' Test if IMA policy is loaded before systemd starts'''