mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
16614447eb
commit
287897d702
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user