]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: also add qemu shutdown trace debug logs to integration script
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 8 Dec 2025 15:47:50 +0000 (15:47 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 Dec 2025 20:29:36 +0000 (21:29 +0100)
Again to chase https://github.com/systemd/systemd/issues/38240
as suggested on QEMU's matrix channel

test/integration-tests/integration-test-wrapper.py

index f7d7807a68c304e5d67fb99ff7498fff5a24f17d..738fe60681b16f0ca014426cec3d7098104bbb0b 100755 (executable)
@@ -617,7 +617,13 @@ def main() -> None:
 
     # XXX: debug for https://github.com/systemd/systemd/issues/38240
     if vm:
-        cmd += ['--qemu-args=-d cpu_reset,guest_errors -D /dev/stderr']
+        # Tracing is not supported in centos/fedora qemu builds
+        if summary.distribution in ('centos', 'fedora'):
+            cmd += ['--qemu-args=-d cpu_reset,guest_errors -D /dev/stderr']
+        else:
+            cmd += [
+                '--qemu-args=-d cpu_reset,guest_errors,trace:kvm_run_exit_system_event,trace:qemu_system_\*_request -D /dev/stderr'  # noqa: E501
+            ]
 
     try:
         result = subprocess.run(cmd)