summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>2020-07-22 18:26:33 +0900
committerJens Axboe <axboe@kernel.dk>2020-07-22 07:38:31 -0600
commit693403ebc40fd2986e9a4f3bdee31c61d44f123f (patch)
treee9c8d397854f8c9513f79596bebaf2d7209b2a0f
parent5090d1d0f2a109c276384c93308566b7a3bfa5ad (diff)
downloadfio-693403ebc40fd2986e9a4f3bdee31c61d44f123f.tar.gz
fio-693403ebc40fd2986e9a4f3bdee31c61d44f123f.tar.bz2
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 <damien.lemoal@wdc.com> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xt/zbd/test-zbd-support1
1 files changed, 1 insertions, 0 deletions
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 $?
}