Skip to content

Commit

Permalink
feat(inoculate): QEMU debug logging in test mode (#510)
Browse files Browse the repository at this point in the history
This should make it a bit easier to debug test failures due to guest
crashes, I hope...
  • Loading branch information
hawkw authored Jan 11, 2025
1 parent 993d1b9 commit 1be23cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inoculate/src/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
Expand Down

0 comments on commit 1be23cb

Please sign in to comment.