aboutsummaryrefslogtreecommitdiffstats
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-11-10 14:44:23 +0000
commit7058ac23c5ce32fbdc4be6c05f85550e1fd9fe77 (patch)
treeaeef80968c892b410ebee4aee349096f370f81f5
parentf706448952c942d25ea96cda09a700d2c5c63520 (diff)
downloadopenembedded-core-contrib-7058ac23c5ce32fbdc4be6c05f85550e1fd9fe77.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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
# 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):
"""