From: Thomas Huth Date: Tue, 23 Jul 2019 11:12:01 +0000 (+0200) Subject: tests/qemu-iotests: Don't use 'seq' in the iotests X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=30edd9fa50e86fbf40c780bf47d7cb214e6f8438;p=qmiga%2Fqemu.git 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 Message-Id: <20190723111201.1926-1-thuth@redhat.com> Signed-off-by: Alex Bennée --- diff --git a/tests/qemu-iotests/007 b/tests/qemu-iotests/007 index 6abd402423..7d3544b479 100755 --- a/tests/qemu-iotests/007 +++ b/tests/qemu-iotests/007 @@ -48,7 +48,7 @@ echo echo "creating image" _make_test_img 1M -for i in `seq 1 10`; do +for ((i=1;i<=10;i++)); do echo "savevm $i" $QEMU -nographic -hda "$TEST_IMG" -serial none -monitor stdio >/dev/null 2>&1 <&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 }