qemu-iotests: Fix call syntax for qemu-img
commit21af81488799e2290cb2e58eb2a91d1d8044ebc4
authorStefan Weil <sw@weilnetz.de>
Wed, 14 Mar 2012 18:57:23 +0000 (14 19:57 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 13:08:22 +0000 (5 15:08 +0200)
tree30a5e8105853b8bee3a6e85c15383db7e42a6c92
parentf394f1feb921d5a4b278e7ac95bdaa49e34a52f2
qemu-iotests: Fix call syntax for qemu-img

qemu-img requires first options, then file name, then size.

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>
tests/qemu-iotests/common.rc