[oe-commits] [openembedded-core] 03/08: classes/testimage: When image is systemd, enable debug log level

git at git.openembedded.org git at git.openembedded.org
Thu Jul 28 21:43:10 UTC 2016


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

commit d403db89ba111961414b55929cec463752435f16
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: 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]
    
    Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/testimage.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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()

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


More information about the Openembedded-commits mailing list