[oe-commits] [openembedded-core] 18/39: oeqa/core/threaded: logSummary add skipped tests info
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 20 16:30:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 678fe6b4aa615b807fd5ccca8004e65caafeb7f9
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Tue Jul 11 08:04:08 2017 -0700
oeqa/core/threaded: logSummary add skipped tests info
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
meta/lib/oeqa/core/threaded.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/meta/lib/oeqa/core/threaded.py b/meta/lib/oeqa/core/threaded.py
index a7dc0ae..022c9ac 100644
--- a/meta/lib/oeqa/core/threaded.py
+++ b/meta/lib/oeqa/core/threaded.py
@@ -234,6 +234,14 @@ class OETestResultThreaded(object):
self._results[tid]['result'].wasSuccessful()
return wasSuccessful
+ def getSkippedTests(self):
+ skipped = 0
+
+ for tid in self._results.keys():
+ skipped = skipped + len(self.tc._results[tid]['skipped'])
+
+ return skipped
+
def stop(self):
for tid in self._results.keys():
self._results[tid]['result'].stop()
@@ -248,6 +256,9 @@ class OETestResultThreaded(object):
msg = "%s - OK - All required tests passed" % component
else:
msg = "%s - FAIL - Required tests failed" % component
+ skipped = self.getSkippedTests()
+ if skipped:
+ msg += " (skipped=%d)" % skipped
self.tc.logger.info(msg)
def logDetails(self):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list