From 287897d7028d62290398d801249d0426d9831417 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 13 Feb 2020 11:18:05 +0000 Subject: [PATCH] tests: Run test_vfio with PCI binary The placement of the explicit run of "test_vfio" meant it was run with MMIO rather than PCI which meant it always failed. Signed-off-by: Rob Bradford --- scripts/run_integration_tests.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index aeff6f227..d606e685b 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -181,6 +181,12 @@ time cargo test --features "integration_tests" "$@" -- --nocapture EOF RES=$? +# 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 + if [ $RES -eq 0 ]; then # virtio-mmio based testing cargo build --release --no-default-features --features "mmio" @@ -194,12 +200,6 @@ 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