]> 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>
Tue, 13 Nov 2018 22:57:26 +0000 (22:57 +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 034f22324027bd15c2f9fdbcfc0edad2a9346ac4..e8f9ee0109b72e98f9402b029efeb538402eb32c 100644 (file)
@@ -76,9 +76,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):