Patchwork lib/oeqa/runtime: syslog: fix test for logger in case of systemd

login
register
mail settings
Submitter Stanacar, StefanX
Date Aug. 29, 2013, 4:05 p.m.
Message ID <1377792313-15644-1-git-send-email-stefanx.stanacar@intel.com>
Download mbox | patch
Permalink /patch/56993/
State New
Headers show

Comments

Stanacar, StefanX - Aug. 29, 2013, 4:05 p.m.
Recently syslog behaviour changed for systemd images (log
it's in a buffer not in /var/log/messages), account
for the new stuff.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
---
 meta/lib/oeqa/runtime/syslog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py
index 5ff2962..14d94fd 100644
--- a/meta/lib/oeqa/runtime/syslog.py
+++ b/meta/lib/oeqa/runtime/syslog.py
@@ -23,7 +23,7 @@  class SyslogTestConfig(oeRuntimeTest):
 
     @skipUnlessPassed("test_syslog_running")
     def test_syslog_logger(self):
-        (status,output) = self.target.run('logger foobar && grep foobar /var/log/messages')
+        (status,output) = self.target.run('logger foobar && test -e /var/log/messages && grep foobar /var/log/messages || logread | grep')
         self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output)
 
     @skipUnlessPassed("test_syslog_running")