diff options
-rw-r--r-- | meta/lib/oeqa/runtime/syslog.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py index cce3c221d6..8f550329e7 100644 --- a/meta/lib/oeqa/runtime/syslog.py +++ b/meta/lib/oeqa/runtime/syslog.py | |||
@@ -22,8 +22,11 @@ class SyslogTestConfig(oeRuntimeTest): | |||
22 | self.assertEqual(status, 0, msg="Can't log into syslog. Output: %s " % output) | 22 | self.assertEqual(status, 0, msg="Can't log into syslog. Output: %s " % output) |
23 | 23 | ||
24 | (status, output) = self.target.run('grep foobar /var/log/messages') | 24 | (status, output) = self.target.run('grep foobar /var/log/messages') |
25 | if status != 0 and not oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", "") == "systemd": | 25 | if status != 0: |
26 | (status, output) = self.target.run('logread | grep foobar') | 26 | if oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", "") == "systemd": |
27 | (status, output) = self.target.run('journalctl -o cat | grep foobar') | ||
28 | else: | ||
29 | (status, output) = self.target.run('logread | grep foobar') | ||
27 | self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages or logread. Output: %s " % output) | 30 | self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages or logread. Output: %s " % output) |
28 | 31 | ||
29 | @testcase(1150) | 32 | @testcase(1150) |