From 9ce0e93849325ef684c26d42b6e7bca4d52b516a Mon Sep 17 00:00:00 2001 From: Dominik Behr Date: Mon, 2 Nov 2026 22:04:14 -0800 Subject: [PATCH] tests: give the Octane an R10000 in the virtio-serial validation test The Octane refuses the default R4400, so pick a CPU each profile accepts. Co-Authored-By: Claude Opus 5.5 --- src/platform_profile_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform_profile_tests.rs b/src/platform_profile_tests.rs index 96286b863..f499e86c4 100644 --- a/src/platform_profile_tests.rs +++ b/src/platform_profile_tests.rs @@ -42,6 +42,10 @@ mod tests { fn virtio_cfg(profile: MachineProfile) -> MachineConfig { let mut cfg = minimal_cfg(); cfg.machine.profile = profile; + // The Octane refuses the default R4400. + if !profile.cpus().contains(&cfg.machine.cpu) { + cfg.machine.cpu = profile.cpus()[0]; + } cfg.virtio_serial.enabled = true; cfg }