summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-22 23:12:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-23 07:32:53 +0100
commit4c499a1b10a0c2647b6a753b8f9cd934ae4ad0da (patch)
treeed01b461347398bbcac611bdf5018dcfd3ead896
parent5ccd2284e5dd994230e9e229b7931d049c9f46c0 (diff)
downloadopenembedded-core-contrib-4c499a1b10a0c2647b6a753b8f9cd934ae4ad0da.tar.gz
openembedded-core-contrib-4c499a1b10a0c2647b6a753b8f9cd934ae4ad0da.tar.bz2
openembedded-core-contrib-4c499a1b10a0c2647b6a753b8f9cd934ae4ad0da.zip
oeqa/runner: Print any errors/failures early
Its a pain to have to wait until oe-selftest finishes to see the failures for example. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/runner.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py
index 73f41d9f1c..eeb625b7ff 100644
--- a/meta/lib/oeqa/core/runner.py
+++ b/meta/lib/oeqa/core/runner.py
@@ -56,6 +56,14 @@ class OETestResult(_TestResult):
if test.id() in self.progressinfo:
self.tc.logger.info(self.progressinfo[test.id()])
+ # Print the errors/failures early to aid/speed debugging, its a pain
+ # to wait until selftest finishes to see them.
+ for t in ['failures', 'errors', 'skipped', 'expectedFailures']:
+ for (scase, msg) in getattr(self, t):
+ if test.id() == scase.id():
+ self.tc.logger.info(str(msg))
+ break
+
def logSummary(self, component, context_msg=''):
elapsed_time = self.tc._run_end_time - self.tc._run_start_time
self.tc.logger.info("SUMMARY:")