aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/037
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qemu-iotests/037')
-rwxr-xr-xtests/qemu-iotests/0372
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/037 b/tests/qemu-iotests/037
index 819a2a52d2..4946b9be92 100755
--- a/tests/qemu-iotests/037
+++ b/tests/qemu-iotests/037
@@ -61,7 +61,7 @@ backing_io()
local pattern=0
local cur_sec=0
- for i in $(seq 0 $((sectors - 1))); do
+ for ((i=0;i<=$((sectors - 1));i++)); do
cur_sec=$((offset / 512 + i))
pattern=$(( ( (cur_sec % 256) + (cur_sec / 256)) % 256 ))