summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-08-29 16:06:17 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-30 15:23:47 (GMT)
commit8f32af94c03854c321ad4fd6016b64d7eda533bf (patch)
tree65af019211c8bc5d54adbf91ed22f171a378bc0c /meta
parent926a11748696c955b9684c9cac3a2e65e51528fc (diff)
downloadpoky-8f32af94c03854c321ad4fd6016b64d7eda533bf.tar.gz
lib/oeqa/runtime: syslog: fix test for logger in case of systemd
Recently syslog behaviour changed for systemd images (log it's in a buffer not in /var/log/messages), account for the new stuff. (From OE-Core rev: 32576c4cc1621fa3013eac66c7caaa1e1fd14995) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/syslog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py
index 5ff2962..91d7963 100644
--- a/meta/lib/oeqa/runtime/syslog.py
+++ b/meta/lib/oeqa/runtime/syslog.py
@@ -23,7 +23,7 @@ class SyslogTestConfig(oeRuntimeTest):
23 23
24 @skipUnlessPassed("test_syslog_running") 24 @skipUnlessPassed("test_syslog_running")
25 def test_syslog_logger(self): 25 def test_syslog_logger(self):
26 (status,output) = self.target.run('logger foobar && grep foobar /var/log/messages') 26 (status,output) = self.target.run('logger foobar && test -e /var/log/messages && grep foobar /var/log/messages || logread | grep foobar')
27 self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output) 27 self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output)
28 28
29 @skipUnlessPassed("test_syslog_running") 29 @skipUnlessPassed("test_syslog_running")