From 32576c4cc1621fa3013eac66c7caaa1e1fd14995 Mon Sep 17 00:00:00 2001 From: Stefan Stanacar Date: Thu, 29 Aug 2013 19:06:17 +0300 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oeqa') diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py index 5ff29620cb..91d79635b7 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 foobar') self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages. Output: %s " % output) @skipUnlessPassed("test_syslog_running") -- cgit v1.2.3