summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-05-26 15:37:32 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-02 13:36:13 +0100
commitb4b9e22c40b7ce315d0286fe656581f81d965043 (patch)
tree9741e2f485ced305130ccd352151663cc6dc6cab /meta/classes
parentc7600278b6c39a311f822b1a7d39339bac3076c2 (diff)
downloadpoky-b4b9e22c40b7ce315d0286fe656581f81d965043.tar.gz
oeqa/core: Move OETestContext.log{Summary, Details} into OETestResult
Those methods are used to write in the log the results so it makes sense to have defined at OETestResult because is a format of the result itself. [YOCTO #11450] (From OE-Core rev: 33a783f59ed4e232f41f8b09dfa7955f2ddc2f80) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/testimage.bbclass4
-rw-r--r--meta/classes/testsdk.bbclass8
2 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index fb214604a9..d42907cf80 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -292,8 +292,8 @@ def testimage_main(d):
292 # Show results (if we have them) 292 # Show results (if we have them)
293 if not results: 293 if not results:
294 bb.fatal('%s - FAILED - tests were interrupted during execution' % pn) 294 bb.fatal('%s - FAILED - tests were interrupted during execution' % pn)
295 tc.logSummary(results, pn) 295 results.logSummary(pn)
296 tc.logDetails() 296 results.logDetails()
297 if not results.wasSuccessful(): 297 if not results.wasSuccessful():
298 bb.fatal('%s - FAILED - check the task log and the ssh log' % pn) 298 bb.fatal('%s - FAILED - check the task log and the ssh log' % pn)
299 299
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 4740233910..edea89cbf4 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -70,8 +70,8 @@ def testsdk_main(d):
70 component = "%s %s" % (pn, OESDKTestContextExecutor.name) 70 component = "%s %s" % (pn, OESDKTestContextExecutor.name)
71 context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env)) 71 context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env))
72 72
73 tc.logSummary(result, component, context_msg) 73 result.logSummary(component, context_msg)
74 tc.logDetails() 74 result.logDetails()
75 75
76 if not result.wasSuccessful(): 76 if not result.wasSuccessful():
77 fail = True 77 fail = True
@@ -172,8 +172,8 @@ def testsdkext_main(d):
172 component = "%s %s" % (pn, OESDKExtTestContextExecutor.name) 172 component = "%s %s" % (pn, OESDKExtTestContextExecutor.name)
173 context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env)) 173 context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env))
174 174
175 tc.logSummary(result, component, context_msg) 175 result.logSummary(component, context_msg)
176 tc.logDetails() 176 result.logDetails()
177 177
178 if not result.wasSuccessful(): 178 if not result.wasSuccessful():
179 fail = True 179 fail = True