From: Adrian Freihofer <[email protected]>

Pass "-d" to runqemu for the ide-sdk selftests when oe-selftest's own
logger is at DEBUG level, to get qemu's verbose logging for free when
diagnosing a failure (e.g. slirp hostfwd port allocation) instead of
having to hardcode it on for every run.

Signed-off-by: Adrian Freihofer <[email protected]>
---
 meta/lib/oeqa/selftest/cases/devtool.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/devtool.py 
b/meta/lib/oeqa/selftest/cases/devtool.py
index 535ffed9f0..490a1d0bf0 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -3620,7 +3620,8 @@ class DevtoolIdeSdkTests(DevtoolBase):
             self._verify_nfs_launch_json(tempdir_cmake, nfs_rootfs)
             self._verify_nfs_launch_json(tempdir_meson, nfs_rootfs)
 
-            launch_cmd = '%s nographic' % shlex.quote(runqemu_helper)
+            qemu_debug_opt = ' -d' if self.logger.isEnabledFor(logging.DEBUG) 
else ''
+            launch_cmd = '%s nographic%s' % (shlex.quote(runqemu_helper), 
qemu_debug_opt)
             runqemuparams = ''
             if slirp:
                 launch_cmd += ' slirp'
@@ -3629,7 +3630,8 @@ class DevtoolIdeSdkTests(DevtoolBase):
                 runqemuparams = 'slirp'
             qemu_cm = runqemu(testimage, runqemuparams=runqemuparams, 
launch_cmd=launch_cmd)
         else:
-            runqemuparams = "nographic slirp" if slirp else "nographic"
+            qemu_debug_opt = ' -d' if self.logger.isEnabledFor(logging.DEBUG) 
else ''
+            runqemuparams = ("nographic slirp" if slirp else "nographic") + 
qemu_debug_opt
             qemu_cm = runqemu(testimage, runqemuparams=runqemuparams)
 
         with qemu_cm as qemu:
-- 
2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246086): 
https://lists.openembedded.org/g/openembedded-core/message/246086
Mute This Topic: https://lists.openembedded.org/mt/121302029/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to