]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/testimage: When image is systemd, enable debug log level
authorAníbal Limón <anibal.limon@linux.intel.com>
Wed, 27 Jul 2016 22:40:40 +0000 (17:40 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Aug 2016 10:46:37 +0000 (11:46 +0100)
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@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/testimage.bbclass

index 0b6c779dbca74fd1276c501a03588bcdc95aa6c8..e42c5acce965d6c420d96b236ac6e890fae8dc10 100644 (file)
@@ -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()