From 1b14962c3fae771f50d6a8e1937a93c7ce76f592 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 7 Dec 2023 13:15:01 +0000 Subject: oeqa/runtime/systemd: Ensure test runs only on systemd images When enabled in DISTRO_FEATURES the test may run on a system without systemd. Fix this. (From OE-Core rev: c2b473390dec0f5132d5b4bff6d3c35214eb898b) Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/cases/systemd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/lib/oeqa/runtime/cases/systemd.py b/meta/lib/oeqa/runtime/cases/systemd.py index 4c581ba396..2865887959 100644 --- a/meta/lib/oeqa/runtime/cases/systemd.py +++ b/meta/lib/oeqa/runtime/cases/systemd.py @@ -137,6 +137,7 @@ class SystemdServiceTests(SystemdTest): status = self.target.run('mount -oro,remount /')[0] self.assertTrue(status == 0, msg='Remounting / as r/o failed') + @OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic']) @skipIfNotFeature('minidebuginfo', 'Test requires minidebuginfo to be in DISTRO_FEATURES') @OEHasPackage(['busybox']) def test_systemd_coredump_minidebuginfo(self): -- cgit v1.2.3-54-g00ecf