]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runner: Print any errors/failures early
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Aug 2018 22:12:43 +0000 (23:12 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2018 06:32:53 +0000 (07:32 +0100)
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>
meta/lib/oeqa/core/runner.py

index 73f41d9f1cfff580151fbf198b7f9953a0e09a25..eeb625b7ff7311b8075c90aa39c87dcc2505ffe4 100644 (file)
@@ -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:")