diff options
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r-- | meta/lib/oeqa/oetest.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index 8eb84ed65d..3ed5bb8c2b 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | # It also has some helper functions and it's responsible for actually starting the tests | 8 | # It also has some helper functions and it's responsible for actually starting the tests |
9 | 9 | ||
10 | import os, re, mmap | 10 | import os, re, mmap, sys |
11 | import unittest | 11 | import unittest |
12 | import inspect | 12 | import inspect |
13 | import subprocess | 13 | import subprocess |
@@ -326,12 +326,8 @@ class TestContext(object): | |||
326 | logger.info("Filter test cases by tags: %s" % self.tagexp) | 326 | logger.info("Filter test cases by tags: %s" % self.tagexp) |
327 | logger.info("Found %s tests" % self.suite.countTestCases()) | 327 | logger.info("Found %s tests" % self.suite.countTestCases()) |
328 | runner = unittest.TextTestRunner(verbosity=2) | 328 | runner = unittest.TextTestRunner(verbosity=2) |
329 | try: | 329 | if 'bb' in sys.modules: |
330 | if bb.msg.loggerDefaultVerbose: | 330 | runner.stream.write = custom_verbose |
331 | runner.stream.write = custom_verbose | ||
332 | except NameError: | ||
333 | # Not in bb environment? | ||
334 | pass | ||
335 | 331 | ||
336 | return runner.run(self.suite) | 332 | return runner.run(self.suite) |
337 | 333 | ||