diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index 8fe25ff3c..aeff6f227 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -194,6 +194,12 @@ EOF RES=$? fi +# Try the VFIO test but ignore the result +newgrp kvm << EOF +export RUST_BACKTRACE=1 +time cargo test --features "integration_tests" test_vfio -- --nocapture --ignored +EOF + # Tear VFIO test network down sudo ip link del vfio-br0 sudo ip link del vfio-tap0 diff --git a/src/main.rs b/src/main.rs index 44f61c4d2..8c3364816 100755 --- a/src/main.rs +++ b/src/main.rs @@ -3796,6 +3796,7 @@ mod tests { // its cloud-hypervisor host, we should be able to ssh into it, and verify // that it's running with the right kernel command line (We tag the command // line from cloud-hypervisor for that purpose). + #[cfg_attr(not(feature = "mmio"), ignore)] fn test_vfio() { test_block!(tb, "", { let mut clear = ClearDiskConfig::new();