From: Shin'ichiro Kawasaki Date: Wed, 22 Jul 2020 09:26:33 +0000 (+0900) Subject: t/zbd: Improve pass condition of test case #49 X-Git-Tag: fio-3.22~27 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=693403ebc40fd2986e9a4f3bdee31c61d44f123f;p=fio.git t/zbd: Improve pass condition of test case #49 The test case #49 runs write workloads with verify option. It checks read bytes for verify, but it does not check written bytes. To make test pass condition more accurate, add check of the written bytes. Fixes: 4844bb4716ab ("t/zbd: Add test case to check zonecapacity option") Reviewed-by: Damien Le Moal Signed-off-by: Shin'ichiro Kawasaki Signed-off-by: Jens Axboe --- diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index e53a20c5..471a3487 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -856,6 +856,7 @@ test49() { --zonecapacity=${capacity} \ --verify=md5 --size=${size} >>"${logfile}.${test_number}" 2>&1 || return $? + check_written $((capacity * 2)) || return $? check_read $((capacity * 2)) || return $? }