diff --git a/tests/integration.rs b/tests/integration.rs index 061a85354..cd41589be 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -7511,6 +7511,7 @@ mod dbus_api { } mod ivshmem { + #[cfg(not(feature = "mshv"))] use std::fs::remove_dir_all; use std::process::Command; @@ -7759,6 +7760,7 @@ mod ivshmem { } #[test] + #[cfg(not(feature = "mshv"))] fn test_snapshot_restore_ivshmem() { let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string()); let guest = Guest::new(Box::new(disk_config)); @@ -7912,11 +7914,13 @@ mod ivshmem { } #[test] + #[cfg(not(feature = "mshv"))] fn test_live_migration_ivshmem() { _test_live_migration_ivshmem(false) } #[test] + #[cfg(not(feature = "mshv"))] fn test_live_migration_ivshmem_local() { _test_live_migration_ivshmem(true) }