[oe-commits] Patrick Ohly : oeqa/oetest.py: use bb logging
git at git.openembedded.org
git at git.openembedded.org
Thu Apr 9 10:29:15 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: ce025325ed305a05fc8cda4e803ed6dcf0d7d358
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ce025325ed305a05fc8cda4e803ed6dcf0d7d358
Author: Patrick Ohly <patrick.ohly at intel.com>
Date: Thu Apr 9 02:24:22 2015 -0700
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/oetest.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 0b7e7dc..a3c5c1d 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)
More information about the Openembedded-commits
mailing list