]> code.ossystems Code Review - openembedded-core.git/commitdiff
testimage: Ensure full logs are shown for failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Nov 2017 14:41:32 +0000 (14:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Nov 2017 14:44:23 +0000 (14:44 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass

index b955fc1775a8d777a624f2187fb1487ba64f832c..45bb2bda3b8d6e7e9a5f83cb149dc0e852301896 100644 (file)
@@ -291,11 +291,11 @@ def testimage_main(d):
 
     # Show results (if we have them)
     if not results:
-        bb.fatal('%s - FAILED - tests were interrupted during execution' % pn)
+        bb.fatal('%s - FAILED - tests were interrupted during execution' % pn, forcelog=True)
     results.logDetails()
     results.logSummary(pn)
     if not results.wasSuccessful():
-        bb.fatal('%s - FAILED - check the task log and the ssh log' % pn)
+        bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True)
 
 def get_runtime_paths(d):
     """