mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
scripts: Add retries for vfio integration tests
Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
@@ -31,12 +31,12 @@ export RUST_BACKTRACE=1
|
|||||||
export RUSTFLAGS="$RUSTFLAGS"
|
export RUSTFLAGS="$RUSTFLAGS"
|
||||||
|
|
||||||
# Run VFIO tests using legacy vfio interface with container/group
|
# Run VFIO tests using legacy vfio interface with container/group
|
||||||
time cargo nextest run --no-tests=pass --test-threads=1 "vfio::test_nvidia" -- ${test_binary_args[*]}
|
time cargo nextest run --retries 3 --no-tests=pass --test-threads=1 "vfio::test_nvidia" -- ${test_binary_args[*]}
|
||||||
RES=$?
|
RES=$?
|
||||||
|
|
||||||
# Run VFIO tests using vfio cdev interface backed by iommufd
|
# Run VFIO tests using vfio cdev interface backed by iommufd
|
||||||
if [ $RES -eq 0 ]; then
|
if [ $RES -eq 0 ]; then
|
||||||
time cargo nextest run --no-tests=pass --test-threads=1 "vfio::test_iommufd" -- ${test_binary_args[*]}
|
time cargo nextest run --retries 3 --no-tests=pass --test-threads=1 "vfio::test_iommufd" -- ${test_binary_args[*]}
|
||||||
RES=$?
|
RES=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user