lib/oeqa/runtime: syslog: fix test for logger in case of systemd
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.
Signed-off-by Stefan Stanacar <[email protected]>
--- meta/lib/oeqa/runtime/syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/runtime/syslog.py +1 -1
@@ -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