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>
This commit is contained in:
Mikko Rapeli
2024-12-20 16:04:40 +02:00
committed by Armin Kuster
parent 69b8567e97
commit 08c712d672

View File

@@ -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. '