diff options
Diffstat (limited to 'tests/qemu-iotests/common.pattern')
-rw-r--r-- | tests/qemu-iotests/common.pattern | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/common.pattern b/tests/qemu-iotests/common.pattern index c2b84b8f48..85a40eecc0 100644 --- a/tests/qemu-iotests/common.pattern +++ b/tests/qemu-iotests/common.pattern @@ -23,7 +23,7 @@ function do_is_allocated() { local count=$4 for i in `seq 1 $count`; do - echo alloc $(( start + i * step )) $size + echo alloc $(( start + (i - 1) * step )) $size done } @@ -41,7 +41,7 @@ function do_io() { echo === IO: pattern $pattern >&2 for i in `seq 1 $count`; do - echo $op -P $pattern $(( start + i * step )) $size + echo $op -P $pattern $(( start + (i - 1) * step )) $size done } |