]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runner: Always show a summary of success/fail/error/skip counts
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Nov 2018 21:10:43 +0000 (21:10 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2018 13:49:11 +0000 (13:49 +0000)
Its useful to have the counts of success/failure/error/skipped at the end of the
results to allow for easier human reading of what happened.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/runner.py

index 9a64e494f4eb3e77d4b04e9e82d8109951ad80a4..0cb1a95c1ee30b1508aafb63657106d506388c7d 100644 (file)
@@ -61,9 +61,7 @@ class OETestResult(_TestResult):
             msg = "%s - OK - All required tests passed" % component
         else:
             msg = "%s - FAIL - Required tests failed" % component
-        skipped = len(self.skipped)
-        if skipped:
-            msg += " (skipped=%d)" % skipped
+        msg += " (successes=%d, skipped=%d, failures=%d, errors=%d)" % (len(self.successes), len(self.skipped), len(self.failures), len(self.errors))
         self.tc.logger.info(msg)
 
     def _getTestResultDetails(self, case):