t/zbd: skip test case #13 when max_open_zones is too small
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 2 Jun 2022 09:13:10 +0000 (18:13 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jun 2022 09:58:31 +0000 (03:58 -0600)
commit26faead0f3c6e7608b89a51373f1455b91377fcb
treef0d21b1148569f8e283c179bf6e3d61e31f40b14
parent37a0881ffc6b55f61bfb23e9a5dbe737a4c455a3
t/zbd: skip test case #13 when max_open_zones is too small

Test case #13 of t/zbd/test-zbd-support fails when the test target
device has max_open_zones smaller than 4. To avoid the failure, add a
helper function require_max_open_zones and use it to skip the test case
when the device does not have required minimum max_open_zones.

Reported-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/fio/20220602015316.6ismlexb22fwd5ko@shindev/
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20220602091310.97189-1-shinichiro.kawasaki@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/test-zbd-support