From f2d3c17e1fa960e934692273fec1954f376b526c Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Fri, 27 Feb 2026 14:33:05 -0800 Subject: [PATCH] test_infra: set default kernel path and cmdline in Guest Initialize kernel_path and kernel_cmdline with standard direct boot defaults in the Guest constructor instead of None. This removes boilerplate from individual tests that use the common direct kernel boot configuration. Signed-off-by: Muminul Islam --- test_infra/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_infra/src/lib.rs b/test_infra/src/lib.rs index f2b7bb9fb..345aa3c25 100644 --- a/test_infra/src/lib.rs +++ b/test_infra/src/lib.rs @@ -985,8 +985,8 @@ impl Guest { network, vm_type: GuestVmType::Regular, boot_timeout: DEFAULT_TCP_LISTENER_TIMEOUT, - kernel_path: None, - kernel_cmdline: None, + kernel_path: direct_kernel_boot_path().to_str().map(String::from), + kernel_cmdline: Some(DIRECT_KERNEL_BOOT_CMDLINE.to_string()), console_type: None, num_cpu: 1u32, nested: true,