mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
54c91b0281
commit
84951127b7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user