From f49e4847ba00cdd072e5f072cb9ca69ef98af758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Wed, 27 Jul 2016 17:40:41 -0500 Subject: oeqa/runtime/syslog: test_syslog_logger Don't try to use logread when systemd is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Busybox logread uses shmmem circular buffer to retrive [1] syslog messages when systemd is enabled this shmem circular buffer isn't enabled because systemd journald doesn't provide it. [1] https://git.busybox.net/busybox/tree/sysklogd/logread.c?id=accd9eeb719916da974584b33b1aeced5f3bb346#n121 Signed-off-by: Aníbal Limón Signed-off-by: Ross Burton --- meta/lib/oeqa/runtime/syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/lib/oeqa/runtime/syslog.py b/meta/lib/oeqa/runtime/syslog.py index 202a63f2af..cce3c221d6 100644 --- a/meta/lib/oeqa/runtime/syslog.py +++ b/meta/lib/oeqa/runtime/syslog.py @@ -22,7 +22,7 @@ class SyslogTestConfig(oeRuntimeTest): self.assertEqual(status, 0, msg="Can't log into syslog. Output: %s " % output) (status, output) = self.target.run('grep foobar /var/log/messages') - if status != 0: + if status != 0 and not oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", "") == "systemd": (status, output) = self.target.run('logread | grep foobar') self.assertEqual(status, 0, msg="Test log string not found in /var/log/messages or logread. Output: %s " % output) -- cgit v1.2.3