]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/core/runner: OETestResult add internal _tc_map_results
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 26 May 2017 20:37:35 +0000 (15:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 May 2017 09:15:22 +0000 (10:15 +0100)
This method is to assign results into the TestContext, create
an internal one to support change implementation in Thread version.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/runner.py

index 75058384ae3a71ccfdc4533a3aed61dcef579b7c..3ebffc7c4c445f1aaa6d5391bb643e53a21341e1 100644 (file)
@@ -39,7 +39,9 @@ class OETestResult(_TestResult):
         super(OETestResult, self).__init__(*args, **kwargs)
 
         self.tc = tc
+        self._tc_map_results()
 
+    def _tc_map_results(self):
         self.tc._results['failures'] = self.failures
         self.tc._results['errors'] = self.errors
         self.tc._results['skipped'] = self.skipped