summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/runtime/cases/clamav.py
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2024-12-20 16:04:40 +0200
committerArmin Kuster <akuster808@gmail.com>2024-12-27 11:28:23 -0500
commit08c712d672277cd6888a24d2d0405678527f9433 (patch)
treea3854963a235df9692e1b93b403430d6bf8d16cf /lib/oeqa/runtime/cases/clamav.py
parent69b8567e9784a277017f1b5ea164c3e7bbebf6ea (diff)
downloadmeta-security-08c712d672277cd6888a24d2d0405678527f9433.tar.gz
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 <mikko.rapeli@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'lib/oeqa/runtime/cases/clamav.py')
-rw-r--r--lib/oeqa/runtime/cases/clamav.py2
1 files changed, 2 insertions, 0 deletions
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
6from oeqa.runtime.case import OERuntimeTestCase 6from oeqa.runtime.case import OERuntimeTestCase
7from oeqa.core.decorator.depends import OETestDepends 7from oeqa.core.decorator.depends import OETestDepends
8from oeqa.runtime.decorator.package import OEHasPackage 8from oeqa.runtime.decorator.package import OEHasPackage
9from oeqa.core.decorator.data import skipIfFeature
9 10
10 11
11class ClamavTest(OERuntimeTestCase): 12class ClamavTest(OERuntimeTestCase):
@@ -48,6 +49,7 @@ class ClamavTest(OERuntimeTestCase):
48 self.assertEqual(status, 0, msg = msg) 49 self.assertEqual(status, 0, msg = msg)
49 50
50 @OETestDepends(['clamav.ClamavTest.test_ping_clamav_net']) 51 @OETestDepends(['clamav.ClamavTest.test_ping_clamav_net'])
52 @skipIfFeature('systemd','systemd in DISTRO_FEATURES means update job is already running')
51 def test_freshclam_download(self): 53 def test_freshclam_download(self):
52 status, output = self.target.run('freshclam --show-progress') 54 status, output = self.target.run('freshclam --show-progress')
53 msg = ('freshclam : DB dowbload failed. ' 55 msg = ('freshclam : DB dowbload failed. '