t/zbd: Enable regular block devices for test case #47
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Wed, 15 Jul 2020 04:13:22 +0000 (13:13 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Jul 2020 13:32:12 +0000 (07:32 -0600)
The test case #47 was not able to run for regular block devices since it
missed zonesize option required for regular block devices.

Enable the test case for regular block devices by calling the
run_fio_on_seq() helper function which adds the zonesize option.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/test-zbd-support

index 8934e32b72d2760048a2ab4790823429b6414e05..80dc3f30b2442f04abc99b94e451829e6d31b805 100755 (executable)
@@ -773,10 +773,8 @@ test46() {
 test47() {
     local bs
 
-    [ -z "$is_zbd" ] && return 0
     bs=$((logical_block_size))
-    run_one_fio_job "$(ioengine "psync")" --rw=write --bs=$bs \
-                   --zonemode=zbd --zoneskip=1          \
+    run_fio_on_seq "$(ioengine "psync")" --rw=write --bs=$bs --zoneskip=1 \
                    >> "${logfile}.${test_number}" 2>&1 && return 1
     grep -q 'zoneskip 1 is not a multiple of the device zone size' "${logfile}.${test_number}"
 }