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-12-04 17:14:30 +0000
commitc0af4e9a0666de64c6a8823cdd3fbea579a3fb67 (patch)
treeec53d718fddc5afda590baf67a4128f2cfe4d22e
parent6e45eac3686cb749a6690149dbfca9925786ab9e (diff)
downloadopenembedded-core-c0af4e9a0666de64c6a8823cdd3fbea579a3fb67.tar.gz
openembedded-core-c0af4e9a0666de64c6a8823cdd3fbea579a3fb67.tar.bz2
openembedded-core-c0af4e9a0666de64c6a8823cdd3fbea579a3fb67.zip
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> Signed-off-by: Armin Kuster <akuster@mvista.com>
-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):
"""