aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-04-09 02:24:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-09 19:48:01 +0100
commit4b6f87a82ece230b7296f1577d4092ef559af1d4 (patch)
tree40a1e8e1a58133e4aa43773884862b250b2abbd0
parent4ac5d1011fe6b5bba9511416082891e925cbd03c (diff)
downloadopenembedded-core-contrib-4b6f87a82ece230b7296f1577d4092ef559af1d4.tar.gz
oeqa/oetest.py: use bb logging
Plain print has two drawbacks: - the output is handled by different processes, causing the message about found tests to appear randomly after the result of the initial tests - the output is not part of the bitbake console output Affects image testing with testimage.bbclass. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/oetest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 0b7e7dc42d8..a3c5c1d3586 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -11,6 +11,7 @@ import os, re, mmap
import unittest
import inspect
import subprocess
+import bb
from oeqa.utils.decorators import LogResults
def loadTests(tc, type="runtime"):
@@ -33,8 +34,8 @@ def loadTests(tc, type="runtime"):
def runTests(tc, type="runtime"):
suite = loadTests(tc, type)
- print("Test modules %s" % tc.testslist)
- print("Found %s tests" % suite.countTestCases())
+ bb.note("Test modules %s" % tc.testslist)
+ bb.note("Found %s tests" % suite.countTestCases())
runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(suite)