[OE-core] [oe-core][PATCH 1/1] oeqa: small modification to oe_syslog

Joe Slater joe.slater at windriver.com
Thu Jul 25 20:30:37 UTC 2019


Skip logger test if logger is not a command.

Signed-off-by: Joe Slater <joe.slater at windriver.com>
---
 meta/lib/oeqa/runtime/cases/oe_syslog.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/oe_syslog.py b/meta/lib/oeqa/runtime/cases/oe_syslog.py
index 3a8271a..04f8345 100644
--- a/meta/lib/oeqa/runtime/cases/oe_syslog.py
+++ b/meta/lib/oeqa/runtime/cases/oe_syslog.py
@@ -83,6 +83,8 @@ class SyslogTestConfig(OERuntimeTestCase):
     def test_syslog_logger(self):
         status, output = self.target.run('logger foobar')
         msg = "Can't log into syslog. Output: %s " % output
+        if status == 127:
+            self.skipTest("We cannot test logger because it is not there.")
         self.assertEqual(status, 0, msg=msg)
 
         # There is no way to flush the logger to disk in all cases
-- 
2.7.4



More information about the Openembedded-core mailing list