summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/011
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-03-14 19:57:24 +0100
committerKevin Wolf <kwolf@redhat.com>2012-04-05 15:10:06 +0200
commit28d3d1658a3692f9c34c3ecce14941faa1d2fe92 (patch)
tree0344637a6645c69a9d070ffa1cb3facf0594dcf0 /tests/qemu-iotests/011
parent21af81488799e2290cb2e58eb2a91d1d8044ebc4 (diff)
downloadqemu-28d3d1658a3692f9c34c3ecce14941faa1d2fe92.tar.gz
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>
Diffstat (limited to 'tests/qemu-iotests/011')
-rwxr-xr-xtests/qemu-iotests/0112
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/011 b/tests/qemu-iotests/011
index 59df1ae48e..b03df6887d 100755
--- a/tests/qemu-iotests/011
+++ b/tests/qemu-iotests/011
@@ -60,7 +60,7 @@ for i in `seq 1 10`; do
# 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
# 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 | \
sed -e 's/bytes at offset [0-9]*/bytes at offset XXX/g'
done