aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-14 11:04:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-16 00:01:45 +0100
commitefe1f2c8ad09af3c5ee9c778601c7463c532b012 (patch)
treed5be0a003f55f23739ec8b95b17a139f6d581b87 /meta/lib/oeqa/selftest/cases
parentda9ac8092497c3f2c246d3534f47e42cb2d9e4e8 (diff)
downloadopenembedded-core-contrib-efe1f2c8ad09af3c5ee9c778601c7463c532b012.tar.gz
selftest/tinfoil: Filter LogRecords in test_event_wait
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>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
-rw-r--r--meta/lib/oeqa/selftest/cases/tinfoil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py b/meta/lib/oeqa/selftest/cases/tinfoil.py
index aa1af7e042..471517fb29 100644
--- a/meta/lib/oeqa/selftest/cases/tinfoil.py
+++ b/meta/lib/oeqa/selftest/cases/tinfoil.py
@@ -1,6 +1,7 @@
import os
import re
import time
+import logging
import bb.tinfoil
from oeqa.selftest.case import OESelftestTestCase
@@ -127,6 +128,8 @@ class TinfoilTests(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)