From 84951127b7509a47d1e05aaa1d0280e1093e1002 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Sat, 21 Mar 2026 17:35:29 -0700 Subject: [PATCH] tests: use basic_regular_guest macro in test_pci_multiple_segments Replace manual UbuntuDiskConfig and GuestFactory guest creation with the basic_regular_guest! macro in test_pci_multiple_segments for consistency and reduced boilerplate. Signed-off-by: Muminul Islam --- cloud-hypervisor/tests/integration.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index ca7cc8837..2eac9f069 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -414,8 +414,7 @@ mod common_parallel { #[test] fn test_pci_multiple_segments() { - let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string()); - let guest = GuestFactory::new_regular_guest_factory().create_guest(Box::new(disk_config)); + let guest = basic_regular_guest!(JAMMY_IMAGE_NAME); _test_pci_multiple_segments(&guest, MAX_NUM_PCI_SEGMENTS, 15u16); }