From 7058ac23c5ce32fbdc4be6c05f85550e1fd9fe77 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 10 Nov 2017 14:41:32 +0000 Subject: 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 --- meta/classes/testimage.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes') 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): """ -- cgit 1.2.3-korg