mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
4f01046172
commit
30edd9fa50
7 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue