diff options
-rw-r--r-- | meta/lib/oeqa/runtime/systemd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/systemd.py b/meta/lib/oeqa/runtime/systemd.py index e4f433632f..17cc19f7a5 100644 --- a/meta/lib/oeqa/runtime/systemd.py +++ b/meta/lib/oeqa/runtime/systemd.py | |||
@@ -21,7 +21,9 @@ class SystemdTests(oeRuntimeTest): | |||
21 | @skipUnlessPassed('test_systemd_version') | 21 | @skipUnlessPassed('test_systemd_version') |
22 | def test_systemd_failed(self): | 22 | def test_systemd_failed(self): |
23 | (status, output) = self.target.run('systemctl --failed | grep "0 loaded units listed"') | 23 | (status, output) = self.target.run('systemctl --failed | grep "0 loaded units listed"') |
24 | self.assertEqual(status, 0, msg="Failed systemd services: %s" % self.target.run('systemctl --failed')[1]) | 24 | if status != 0: |
25 | print self.target.run('systemctl status --failed -l')[1] | ||
26 | self.fail("Some systemd units failed.") | ||
25 | 27 | ||
26 | @skipUnlessPassed('test_systemd_version') | 28 | @skipUnlessPassed('test_systemd_version') |
27 | def test_systemd_service(self): | 29 | def test_systemd_service(self): |