mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
tests: test_vdpa_block: fix false positive
Running on host where vdpa_sim_blk module is not correctly loaded test_vdpa_block passes. "test common_parallel::test_vdpa_block ... ok" This commit fixes the vdpa_sim_blk test to fail in that case. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
parent
81b30bf390
commit
341a4558fe
@ -6869,9 +6869,7 @@ mod common_parallel {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn test_vdpa_block() {
|
||||
// Before trying to run the test, verify the vdpa_sim_blk module is correctly loaded.
|
||||
if !exec_host_command_status("lsmod | grep vdpa_sim_blk").success() {
|
||||
return;
|
||||
}
|
||||
assert!(exec_host_command_status("lsmod | grep vdpa_sim_blk").success());
|
||||
|
||||
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||
let guest = Guest::new(Box::new(focal));
|
||||
|
Loading…
Reference in New Issue
Block a user