As the code stands today, an event mask does not mask LogRecord events
since the log levels are controlled separately. We therefore need to
accept (and ignore) LogRecord events in this test to avoid errors.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
import os
import re
import time
+import logging
import bb.tinfoil
from oeqa.selftest.case import OESelftestTestCase
self.assertEqual(pattern, event._pattern)
self.assertIn('qemuarm.conf', event._matches)
eventreceived = True
+ elif isinstance(event, logging.LogRecord):
+ continue
else:
self.fail('Unexpected event: %s' % event)