Skip to content

Commit 5d15185

Browse files
kawasakivincentkfu
authored andcommitted
t/zbd: avoid test case 71 failure with write_zone_remainder option
When -m option is provided for t/zbd/test-zbd-support, the option write_zone_remainder is specified to fio. In this case, the test case 71 fails because fio does writes to small remainder areas at zone ends and it changed the number of writes. To avoid the failure, modify the test condition of the test case. Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Link: https://lore.kernel.org/r/20260303013159.3543787-9-shinichiro.kawasaki@wdc.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
1 parent 5e7b049 commit 5d15185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/zbd/test-zbd-support

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,8 @@ test71() {
17681768
--max_open_zones=1 --debug=zbd \
17691769
>> "${logfile}.${test_number}" 2>&1 || return $?
17701770

1771-
check_written $((zone_size * 8)) || return $?
1771+
check_written $((zone_size * 8)) ||
1772+
check_written $((zone_size * 8 + 4096)) || return $?
17721773
}
17731774

17741775
set_nullb_badblocks() {

0 commit comments

Comments
 (0)