Spdk/test/vhost
Michal Berger 417b77941a test/vhost: Fix arithmetic check against $max_disks
The size of the nvmes[] was being compared against a plain string
(which in arithmetic context always evaluates to 0) due to improper
var referencing.

Fix this by using (( )) to be more flexible and not depend on the
parameter expansion syntax.

Change-Id: I56fd3b98940961475638099dc66aec5544c832c7
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2000
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-05-07 08:24:15 +00:00
..
common test/vhost: remove run_fio.py script 2020-03-31 08:01:17 +00:00
fio test: fix uses of deprecated RPCs 2019-11-07 22:55:38 +00:00
fiotest test/vhost: Remove vhost_load_config function 2020-03-04 10:04:17 +00:00
fuzz test/vhost: add "-g" for vhost_fuzz app 2020-03-06 10:27:55 +00:00
hotplug Revert "test/hotremove: Select test cases to be run for scci and blk hotremove." 2020-02-27 18:11:36 +00:00
initiator test/vhost/initiator: use single file segments 2020-04-29 16:12:36 +00:00
integrity test/vhost: fix parted error 2020-01-15 14:28:51 +00:00
lvol test/vhost: Fix arithmetic check against $max_disks 2020-05-07 08:24:15 +00:00
migration test/vhost: fix vhost migration tests 2020-05-05 08:04:21 +00:00
other test/vhost: Add negative test for vhost scsi target removal 2020-03-04 10:04:17 +00:00
perf_bench test/vhost_perf: allow multiple fio config files 2020-04-21 08:00:24 +00:00
readonly test: Shellcheck - correct rule: Word is on the form... 2019-11-13 15:03:11 +00:00
shared test/vhost: Replace ini config with json in shared test 2020-02-25 10:31:49 +00:00
vhost_boot test: fix error when running vhost_test.sh 2020-01-10 08:47:01 +00:00
windows test: Shellcheck - apply rule SC2155 2019-11-12 18:14:59 +00:00
common.sh test/vhost: fix vhost migration tests 2020-05-05 08:04:21 +00:00
manual.sh Revert "test/hotremove: Select test cases to be run for scci and blk hotremove." 2020-02-27 18:11:36 +00:00
vhost.sh Revert "test/hotremove: Select test cases to be run for scci and blk hotremove." 2020-02-27 18:11:36 +00:00