[gnome-continuous-yocto/gnomeostree-3.28-rocko: 8199/8267] testimage: Ensure full logs are shown for failures



commit 5481891748e4068852105e44fa24b89761997731
Author: Richard Purdie <richard purdie linuxfoundation org>
Date:   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.
    
    (From OE-Core rev: c0af4e9a0666de64c6a8823cdd3fbea579a3fb67)
    
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
    Signed-off-by: Armin Kuster <akuster mvista com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/testimage.bbclass |    4 ++--
 1 files 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):
     """


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]