From 29a0ddc58e984cd188ff27998b96b811f87570fe Mon Sep 17 00:00:00 2001 From: Ruslan Mstoi Date: Tue, 20 Jun 2023 16:37:48 +0300 Subject: [PATCH] tests: Revert disable test_vfio test This reverts commit 51c1738d5510f7b1a3eb0e43af2c3dbcb167b1be. Signed-off-by: Ruslan Mstoi --- scripts/run_integration_tests_vfio.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/run_integration_tests_vfio.sh b/scripts/run_integration_tests_vfio.sh index 746949a9e..ae2963c73 100755 --- a/scripts/run_integration_tests_vfio.sh +++ b/scripts/run_integration_tests_vfio.sh @@ -89,7 +89,12 @@ echo $PAGE_NUM | sudo tee /proc/sys/vm/nr_hugepages sudo chmod a+rwX /dev/hugepages export RUST_BACKTRACE=1 -time cargo test "vfio::test_nvidia" -- --test-threads=1 ${test_binary_args[*]} +time cargo test "vfio::test_vfio" -- ${test_binary_args[*]} RES=$? +if [ $RES -eq 0 ]; then + time cargo test "vfio::test_nvidia" -- --test-threads=1 ${test_binary_args[*]} + RES=$? +fi + exit $RES