aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common.pattern
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-07-23 13:12:01 +0200
committerAlex Bennée <alex.bennee@linaro.org>2019-07-23 15:53:25 +0100
commit30edd9fa50e86fbf40c780bf47d7cb214e6f8438 (patch)
tree9a72cfa4f8ce60a8ab0b42bacaefed0343181430 /tests/qemu-iotests/common.pattern
parent4f01046172770c9a41e82565949b810143f3b39c (diff)
downloadqemu-30edd9fa50e86fbf40c780bf47d7cb214e6f8438.zip
qemu-30edd9fa50e86fbf40c780bf47d7cb214e6f8438.tar.gz
qemu-30edd9fa50e86fbf40c780bf47d7cb214e6f8438.tar.bz2
tests/qemu-iotests: Don't use 'seq' in the iotests
The 'seq' command is not available by default on OpenBSD, so these iotests are currently failing there. It could be installed as 'gseq' from the coreutils package - but since it is using a different name there and we are running the iotests with the "bash" shell anyway, let's simply use the built-in double parentheses for the for-loops instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20190723111201.1926-1-thuth@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/qemu-iotests/common.pattern')
-rw-r--r--tests/qemu-iotests/common.pattern4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/common.pattern b/tests/qemu-iotests/common.pattern
index 25aa0d0..4f5e5bc 100644
--- a/tests/qemu-iotests/common.pattern
+++ b/tests/qemu-iotests/common.pattern
@@ -22,7 +22,7 @@ do_is_allocated() {
local step=$3
local count=$4
- for i in `seq 1 $count`; do
+ for ((i=1;i<=$count;i++)); do
echo alloc $(( start + (i - 1) * step )) $size
done
}
@@ -40,7 +40,7 @@ do_io() {
local pattern=$6
echo === IO: pattern $pattern >&2
- for i in `seq 1 $count`; do
+ for ((i=1;i<=$count;i++)); do
echo $op -P $pattern $(( start + (i - 1) * step )) $size
done
}