diff --git a/test/vhost/common.sh b/test/vhost/common.sh index ab283e90c..503f79ab4 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -586,7 +586,7 @@ function vm_setup() vm_num=$i fi - if [[ $i -eq 256 ]]; then + if [[ $vm_num -eq 256 ]]; then error "no free VM found. do some cleanup (256 VMs created, are you insane?)" return 1 fi