diff --git a/test/vhost/lvol/lvol_test.sh b/test/vhost/lvol/lvol_test.sh index 060fdef03..6d0bc5bf9 100755 --- a/test/vhost/lvol/lvol_test.sh +++ b/test/vhost/lvol/lvol_test.sh @@ -106,7 +106,7 @@ if [[ -z $max_disks ]]; then max_disks=${#nvmes[@]} fi -if [[ ${#nvmes[@]} -lt max_disks ]]; then +if (( ${#nvmes[@]} < max_disks )); then fail "Number of NVMe drives (${#nvmes[@]}) is lower than number of requested disks for test ($max_disks)" fi