From 08c712d672277cd6888a24d2d0405678527f9433 Mon Sep 17 00:00:00 2001 From: Mikko Rapeli Date: Fri, 20 Dec 2024 16:04:40 +0200 Subject: oeqa runtime clamav.py: skip test_freshclam_download with systemd systemd service files already start a download at boot which locks the files and thus the test fails. Instead of this test, with systemd it is sufficient to check that all systemd services succeeded. Signed-off-by: Mikko Rapeli Signed-off-by: Armin Kuster --- lib/oeqa/runtime/cases/clamav.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/oeqa/runtime') diff --git a/lib/oeqa/runtime/cases/clamav.py b/lib/oeqa/runtime/cases/clamav.py index e0cad8f..055c1b0 100644 --- a/lib/oeqa/runtime/cases/clamav.py +++ b/lib/oeqa/runtime/cases/clamav.py @@ -6,6 +6,7 @@ from tempfile import mkstemp from oeqa.runtime.case import OERuntimeTestCase from oeqa.core.decorator.depends import OETestDepends from oeqa.runtime.decorator.package import OEHasPackage +from oeqa.core.decorator.data import skipIfFeature class ClamavTest(OERuntimeTestCase): @@ -48,6 +49,7 @@ class ClamavTest(OERuntimeTestCase): self.assertEqual(status, 0, msg = msg) @OETestDepends(['clamav.ClamavTest.test_ping_clamav_net']) + @skipIfFeature('systemd','systemd in DISTRO_FEATURES means update job is already running') def test_freshclam_download(self): status, output = self.target.run('freshclam --show-progress') msg = ('freshclam : DB dowbload failed. ' -- cgit v1.2.3-54-g00ecf