From: Stefan Stanacar Date: Thu, 29 Aug 2013 16:06:17 +0000 (+0300) Subject: lib/oeqa/runtime: syslog: fix test for logger in case of systemd X-Git-Tag: rev_ivi_2015_02_04~11205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=383e5e6f3aff0283f07fc2c131e1e7ad6a9b2e61;p=scm%2Fbb%2Ftizen-distro.git 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 Signed-off-by: Richard Purdie --- 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): @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")