mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
oeqa/runner: Print any errors/failures early
Its a pain to have to wait until oe-selftest finishes to see the failures for example. (From OE-Core rev: 4c499a1b10a0c2647b6a753b8f9cd934ae4ad0da) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
af87cc83cf
commit
b45f3ecc00
|
@ -56,6 +56,14 @@ class OETestResult(_TestResult):
|
||||||
if test.id() in self.progressinfo:
|
if test.id() in self.progressinfo:
|
||||||
self.tc.logger.info(self.progressinfo[test.id()])
|
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=''):
|
def logSummary(self, component, context_msg=''):
|
||||||
elapsed_time = self.tc._run_end_time - self.tc._run_start_time
|
elapsed_time = self.tc._run_end_time - self.tc._run_start_time
|
||||||
self.tc.logger.info("SUMMARY:")
|
self.tc.logger.info("SUMMARY:")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user