[PATCH v2 8/8] t/zbd: avoid test case 71 failure with write_zone_remainder option
Shin'ichiro Kawasaki <[email protected]> Mon, 16 Feb 2026 16:59:36 +0900
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- t/zbd/test-zbd-support | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index 10fd6690..466a8d4d 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -1768,7 +1768,8 @@ test71() { --max_open_zones=1 --debug=zbd \ >> "${logfile}.${test_number}" 2>&1 || return $? - check_written $((zone_size * 8)) || return $? + check_written $((zone_size * 8)) || + check_written $((zone_size *8 + 4096)) || return $? } set_nullb_badblocks() { -- 2.49.0