summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-10 14:41:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-04 17:23:58 +0000
commit5481891748e4068852105e44fa24b89761997731 (patch)
tree277f050c4c9c2e5a7b9e72dd6de6b1245b70b116 /meta/classes
parent18b51a13af259cb31ddb94140b17ba78614c2b55 (diff)
downloadpoky-5481891748e4068852105e44fa24b89761997731.tar.gz
testimage: Ensure full logs are shown for failures
Currently, the fact an error message is shown means the rest of the task logs are suppressed. In this case we don't want that as it hides the real errors and useful information. Therefore override this behaviour. (From OE-Core rev: c0af4e9a0666de64c6a8823cdd3fbea579a3fb67) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/testimage.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index b955fc1775..45bb2bda3b 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -291,11 +291,11 @@ def testimage_main(d):
291 291
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, forcelog=True)
295 results.logDetails() 295 results.logDetails()
296 results.logSummary(pn) 296 results.logSummary(pn)
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, forcelog=True)
299 299
300def get_runtime_paths(d): 300def get_runtime_paths(d):
301 """ 301 """