On Thu, 2019-07-25 at 13:30 -0700, Joe Slater wrote: > Skip logger test if logger is not a command. > > Signed-off-by: Joe Slater <[email protected]> > --- > 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
Should we not be marking up the test to skip if the appropriate package isn't in the image? Cheers, Richard -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
