aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 8eb84ed65d8..3ed5bb8c2b3 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -7,7 +7,7 @@
# It also has some helper functions and it's responsible for actually starting the tests
-import os, re, mmap
+import os, re, mmap, sys
import unittest
import inspect
import subprocess
@@ -326,12 +326,8 @@ class TestContext(object):
logger.info("Filter test cases by tags: %s" % self.tagexp)
logger.info("Found %s tests" % self.suite.countTestCases())
runner = unittest.TextTestRunner(verbosity=2)
- try:
- if bb.msg.loggerDefaultVerbose:
- runner.stream.write = custom_verbose
- except NameError:
- # Not in bb environment?
- pass
+ if 'bb' in sys.modules:
+ runner.stream.write = custom_verbose
return runner.run(self.suite)