summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-07 13:15:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-08 17:09:59 +0000
commit1b14962c3fae771f50d6a8e1937a93c7ce76f592 (patch)
treeee34fa1a8fc6035fcf3dd0c9f83d084133c222b3 /meta/lib
parentf73e52dd71156ebcb5016f1241eebb889417e3e4 (diff)
downloadpoky-1b14962c3fae771f50d6a8e1937a93c7ce76f592.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/cases/systemd.py1
1 files changed, 1 insertions, 0 deletions
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):
137 status = self.target.run('mount -oro,remount /')[0] 137 status = self.target.run('mount -oro,remount /')[0]
138 self.assertTrue(status == 0, msg='Remounting / as r/o failed') 138 self.assertTrue(status == 0, msg='Remounting / as r/o failed')
139 139
140 @OETestDepends(['systemd.SystemdBasicTests.test_systemd_basic'])
140 @skipIfNotFeature('minidebuginfo', 'Test requires minidebuginfo to be in DISTRO_FEATURES') 141 @skipIfNotFeature('minidebuginfo', 'Test requires minidebuginfo to be in DISTRO_FEATURES')
141 @OEHasPackage(['busybox']) 142 @OEHasPackage(['busybox'])
142 def test_systemd_coredump_minidebuginfo(self): 143 def test_systemd_coredump_minidebuginfo(self):