t/zbd: avoid test case 31 failure with small devices master
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 30 Apr 2024 10:30:22 +0000 (19:30 +0900)
committerVincent Fu <vincent.fu@samsung.com>
Tue, 30 Apr 2024 15:11:58 +0000 (11:11 -0400)
commit3ed8eea0ee9b5d7de603e9b128e6c05941b99938
treea28dfdbcffea494ec349bb0bacb5d14a747f4a25
parent06eb4c1f131b667b0ffbaf167af34b5f04691554
t/zbd: avoid test case 31 failure with small devices

The test case assumed that the test target devices have 128 or more
sequential write required zones and uses 128 as the minimum number of
zones to write. This caused failure when the devices had a smaller
number of sequential write required zones. To avoid the failure, count
the actual number of sequential write required zones and use it if it is
smaller than 128.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20240430103022.4136039-4-shinichiro.kawasaki@wdc.com
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/zbd/test-zbd-support