From 1be23cbabe48f763b84a9dcf3e2f09ac31fd1dbc Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Sat, 11 Jan 2025 11:14:06 -0800 Subject: [PATCH] feat(inoculate): QEMU debug logging in test mode (#510) This should make it a bit easier to debug test failures due to guest crashes, I hope... --- inoculate/src/qemu.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inoculate/src/qemu.rs b/inoculate/src/qemu.rs index 658aed78..565e6fff 100644 --- a/inoculate/src/qemu.rs +++ b/inoculate/src/qemu.rs @@ -198,9 +198,14 @@ impl Cmd { "none", "-serial", "stdio", + // tell QEMU to log guest errors + "-d", + "guest_errors", ]; tracing::info!("running kernel tests ({})", paths.relative(image).display()); qemu_settings.configure(&mut qemu); + + tracing::info!(qemu.test_args = ?TEST_ARGS, "using test mode qemu args"); qemu.args(TEST_ARGS); let mut child = self.spawn_qemu(&mut qemu, paths.kernel_bin())?;