From 014844d0daef115fb9b51ea8bdd9f6f596776653 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 12 Feb 2020 14:27:50 +0000 Subject: [PATCH] build: Don't fail build on test_vfio failure test_vfio has been failing consistently on the CI so mark it with a "#[ignore]" and then forceably build it again but ignore the build result. Signed-off-by: Rob Bradford --- scripts/run_integration_tests.sh | 6 ++++++ src/main.rs | 1 + 2 files changed, 7 insertions(+) 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();