mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Make test_vdpa_block more flexible
We only care that the device exists under an IOMMU group but not which one. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -9921,12 +9921,11 @@ mod common_parallel {
|
||||
.does_device_vendor_pair_match("0x1057", "0x1af4")
|
||||
.unwrap_or_default()
|
||||
);
|
||||
assert_eq!(
|
||||
assert!(
|
||||
guest
|
||||
.ssh_command("ls /sys/kernel/iommu_groups/1/devices")
|
||||
.ssh_command("ls /sys/kernel/iommu_groups/*/devices")
|
||||
.unwrap()
|
||||
.trim(),
|
||||
"0001:00:01.0"
|
||||
.contains("0001:00:01.0")
|
||||
);
|
||||
|
||||
// Check both if /dev/vdd exists and if the block size is 128M.
|
||||
|
||||
Reference in New Issue
Block a user