mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
qemu-iotests: Fix call syntax for qemu-io
qemu-io requires options first, then fixed parameters. GNU getopt also allows options at the end, but POSIX getopt doesn't. Try "export POSIXLY_CORRECT=y" to get the POSIX behaviour with GNU getopt, too. Cc: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
21af814887
commit
28d3d1658a
3 changed files with 6 additions and 6 deletions
|
@ -53,10 +53,10 @@ _make_test_img $size
|
||||||
echo
|
echo
|
||||||
echo "creating pattern"
|
echo "creating pattern"
|
||||||
$QEMU_IO \
|
$QEMU_IO \
|
||||||
-c "write 2048k 4k -P 65" \
|
-c "write -P 65 2048k 4k" \
|
||||||
-c "write 4k 4k" \
|
-c "write 4k 4k" \
|
||||||
-c "write 9M 4k" \
|
-c "write 9M 4k" \
|
||||||
-c "read 2044k 8k -P 65 -s 4k -l 4k" \
|
-c "read -P 65 -s 4k -l 4k 2044k 8k" \
|
||||||
$TEST_IMG | _filter_qemu_io
|
$TEST_IMG | _filter_qemu_io
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -53,11 +53,11 @@ _make_test_img $size
|
||||||
echo
|
echo
|
||||||
echo "creating pattern"
|
echo "creating pattern"
|
||||||
$QEMU_IO \
|
$QEMU_IO \
|
||||||
-c "write 2048k 4k -P 165" \
|
-c "write -P 165 2048k 4k" \
|
||||||
-c "write 64k 4k" \
|
-c "write 64k 4k" \
|
||||||
-c "write 9M 4k" \
|
-c "write 9M 4k" \
|
||||||
-c "write 2044k 4k -P 165" \
|
-c "write -P 165 2044k 4k" \
|
||||||
-c "write 8M 4k -P 99" \
|
-c "write -P 99 8M 4k" \
|
||||||
-c "read -P 165 2044k 8k" \
|
-c "read -P 165 2044k 8k" \
|
||||||
$TEST_IMG | _filter_qemu_io
|
$TEST_IMG | _filter_qemu_io
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ for i in `seq 1 10`; do
|
||||||
# Note that we filter away the actual offset. That's because qemu
|
# Note that we filter away the actual offset. That's because qemu
|
||||||
# may re-order the two aio requests. We only want to make sure the
|
# may re-order the two aio requests. We only want to make sure the
|
||||||
# filesystem isn't corrupted afterwards anyway.
|
# filesystem isn't corrupted afterwards anyway.
|
||||||
$QEMU_IO $TEST_IMG -c "aio_write $off1 1M" -c "aio_write $off2 1M" | \
|
$QEMU_IO -c "aio_write $off1 1M" -c "aio_write $off2 1M" $TEST_IMG | \
|
||||||
_filter_qemu_io | \
|
_filter_qemu_io | \
|
||||||
sed -e 's/bytes at offset [0-9]*/bytes at offset XXX/g'
|
sed -e 's/bytes at offset [0-9]*/bytes at offset XXX/g'
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue