@@ -117,8 +117,9 @@ The NVMe tests can be additionally parameterized via environment variables.
Run the tests with given image size in bytes. 'm', 'M', 'g' and 'G' postfix
are supported. This parameter had an old name 'nvme_img_size'. The old name
is still usable, but not recommended.
-- nvme_num_iter: 1000 (default)
- The number of iterations a test should do.
+- NVME_NUM_ITER: 1000 (default)
+ The number of iterations a test should do. This parameter had an old name
+ 'nvme_num_iter'. The old name is still usable, but not recommended.
### Running nvme-rdma and SRP tests
@@ -23,7 +23,7 @@ test() {
_setup_nvmet
local port
- local iterations="${nvme_num_iter}"
+ local iterations="${NVME_NUM_ITER}"
local loop_dev
loop_dev="$(losetup -f)"
@@ -23,7 +23,7 @@ test() {
_setup_nvmet
local port
- local iterations="${nvme_num_iter}"
+ local iterations="${NVME_NUM_ITER}"
truncate -s "${NVME_IMG_SIZE}" "$(_nvme_def_file_path)"
@@ -20,7 +20,7 @@ export def_subsysnqn="blktests-subsystem-1"
export def_subsys_uuid="91fdba0d-f87b-4c25-b80f-db7be1418b9e"
_check_conflict_and_set_default NVMET_TRTYPES nvme_trtype "loop"
_check_conflict_and_set_default NVME_IMG_SIZE nvme_img_size 1G
-nvme_num_iter=${nvme_num_iter:-"1000"}
+_check_conflict_and_set_default NVME_NUM_ITER nvme_num_iter 1000
nvmet_blkdev_type=${nvmet_blkdev_type:-"device"}
NVMET_BLKDEV_TYPES=${NVMET_BLKDEV_TYPES:-"device file"}