[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1632/8267] classes/testimage: When image is systemd, enable debug log level



commit a86a1b2703372c12e7fca18918695d093ea6ee53
Author: Aníbal Limón <anibal limon linux intel com>
Date:   Wed Jul 27 17:40:40 2016 -0500

    classes/testimage: When image is systemd, enable debug log level
    
    In order to get more information about systemd boot process to
    be able to debug random failures due to high I/O.
    
    [YOCTO #9299]
    
    (From OE-Core rev: a0bb64973e767c3b8e0bae18ee84ed92693922f0)
    
    Signed-off-by: Aníbal Limón <anibal limon linux intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/testimage.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 0b6c779..e42c5ac 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -144,7 +144,10 @@ def testimage_main(d):
     tc.extract_packages()
     target.deploy()
     try:
-        target.start()
+        bootparams = None
+        if d.getVar('VIRTUAL-RUNTIME_init_manager', '') == 'systemd':
+            bootparams = 'systemd.log_level=debug systemd.log_target=console'
+        target.start(extra_bootparams=bootparams)
         starttime = time.time()
         result = tc.runTests()
         stoptime = time.time()


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