diff --git a/test/vhost/fiotest/autotest.sh b/test/vhost/fiotest/autotest.sh index 263b8f9bc..c6fb0ca0d 100755 --- a/test/vhost/fiotest/autotest.sh +++ b/test/vhost/fiotest/autotest.sh @@ -262,7 +262,7 @@ for vm_num in $used_vms; do if [[ "$test_type" == "spdk_vhost_scsi" ]]; then vm_check_scsi_location $vm_num - # vm_reset_scsi_devices $vm_num $SCSI_DISK + vm_reset_scsi_devices $vm_num $SCSI_DISK elif [[ "$test_type" == "spdk_vhost_blk" ]]; then vm_check_blk_location $vm_num fi @@ -290,11 +290,11 @@ fi $run_fio -#if [[ "$test_type" == "spdk_vhost_scsi" ]]; then -# for vm_num in $used_vms; do -# vm_reset_scsi_devices $vm_num $SCSI_DISK -# done -#fi +if [[ "$test_type" == "spdk_vhost_scsi" ]]; then + for vm_num in $used_vms; do + vm_reset_scsi_devices $vm_num $SCSI_DISK + done +fi if ! $no_shutdown; then echo "==============="