qemu-iotests: Add -o and make v3 the default for qcow2

This adds an -o option to qemu-iotests, which is an option string that
is passed through to qemu-img create -o... This allows testing different
subformat with a command like './check -qcow2 -o compat=0.10'.

For qcow2, if no compat option is specified, compat=1.1 is the new
default.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Kevin Wolf 2012-03-27 13:45:14 +02:00
parent 621f058940
commit 8900436891
3 changed files with 52 additions and 5 deletions

View file

@ -41,9 +41,6 @@ then
exit 1
fi
# we need common
. ./common
# we need common.rc
if ! . ./common.rc
then
@ -51,6 +48,9 @@ then
exit 1
fi
# we need common
. ./common
#if [ `id -u` -ne 0 ]
#then
# echo "check: QA must be run as root"