diff --git a/autotest.sh b/autotest.sh index 27ecbf215a..674d1b67ad 100755 --- a/autotest.sh +++ b/autotest.sh @@ -148,14 +148,6 @@ timing_enter afterboot ./scripts/setup.sh timing_exit afterboot -if [[ $SPDK_TEST_CRYPTO -eq 1 || $SPDK_TEST_REDUCE -eq 1 ]]; then - if [[ $SPDK_TEST_USE_IGB_UIO -eq 1 ]]; then - ./scripts/qat_setup.sh igb_uio - else - ./scripts/qat_setup.sh - fi -fi - # Revert existing OPAL to factory settings that may have been left from earlier failed tests. # This ensures we won't hit any unexpected failures due to NVMe SSDs being locked. opal_revert_cleanup @@ -170,6 +162,13 @@ if [ $SPDK_TEST_UNITTEST -eq 1 ]; then fi if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then + if [[ $SPDK_TEST_CRYPTO -eq 1 || $SPDK_TEST_REDUCE -eq 1 ]]; then + if [[ $SPDK_TEST_USE_IGB_UIO -eq 1 ]]; then + ./scripts/qat_setup.sh igb_uio + else + ./scripts/qat_setup.sh + fi + fi timing_enter lib run_test "rpc" test/rpc/rpc.sh diff --git a/scripts/qat_setup.sh b/scripts/qat_setup.sh index 3040bbbe2c..fa3aa4b492 100755 --- a/scripts/qat_setup.sh +++ b/scripts/qat_setup.sh @@ -61,7 +61,7 @@ num_vfs=16 qat_pci_bdfs=($(lspci -Dd:37c8 | awk '{print $1}')) if [ ${#qat_pci_bdfs[@]} -eq 0 ]; then echo "No QAT devices found. Exiting" - exit 0 + exit 1 fi if [ -n "$1" ]; then