[oe-commits] [openembedded-core] 77/122: testimage: Ensure full logs are shown for failures

git at git.openembedded.org git at git.openembedded.org
Mon Dec 4 17:25:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit c0af4e9a0666de64c6a8823cdd3fbea579a3fb67
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Nov 10 14:41:32 2017 +0000

    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 at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 meta/classes/testimage.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index b955fc1..45bb2bd 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):
     """

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list