From 5737e58f293a8c50046bf9f9efc38c95e487d28f Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Tue, 9 Sep 2025 18:24:01 +0000 Subject: [PATCH] tests: Use serial console in test_cpu_hotplug Virtio console is activated much later in boot. The output it spits out lacks the initial CPU configuration of the guest. Signed-off-by: Wei Liu --- tests/integration.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 45662c786..255c27adf 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -4939,6 +4939,7 @@ mod common_parallel { let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); let guest = Guest::new(Box::new(focal)); let api_socket = temp_api_path(&guest.tmp_dir); + let console_str = "console=ttyS0"; let kernel_path = direct_kernel_boot_path(); @@ -4946,7 +4947,14 @@ mod common_parallel { .args(["--cpus", "boot=2,max=4"]) .args(["--memory", "size=512M"]) .args(["--kernel", kernel_path.to_str().unwrap()]) - .args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE]) + .args([ + "--cmdline", + DIRECT_KERNEL_BOOT_CMDLINE + .replace("console=hvc0 ", console_str) + .as_str(), + ]) + .args(["--serial", "tty"]) + .args(["--console", "off"]) .default_disks() .default_net() .args(["--api-socket", &api_socket])