Skip to contentSkip to conversation

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

PATCH New Stefan Stanacar 1 participant 1 message Aug 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
 meta/lib/oeqa/runtime/syslog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/runtime/syslog.py +1 -1
index 5ff2962..91d7963 100644
@@ -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 foobar')
         self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output)
 
     @skipUnlessPassed("test_syslog_running")
Signature · 1 line
1.8.3.1