summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/systemd.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-12-05 12:56:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-05 14:25:30 +0000
commit8dee33872b82ba981814419befdc6f09a1c2568d (patch)
tree98486b74493578e98b3b4b16c2e70ba6a47b04c5 /meta/lib/oeqa/runtime/systemd.py
parent5c58ba9fca102b58dc1116b6f4c3ead38c68dea7 (diff)
downloadpoky-8dee33872b82ba981814419befdc6f09a1c2568d.tar.gz
lib/oeqa/runtime: output more logging from systemd when services have failed
If some services have failed to start, get the status of them and some of their log to help debug the problem. (From OE-Core rev: e371765431be25b81dbdb385233e3db5851e59d0) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/systemd.py')
-rw-r--r--meta/lib/oeqa/runtime/systemd.py4
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):