Commit 0ef5a8e6 authored by Max Reitz's avatar Max Reitz Committed by Kevin Wolf
Browse files

iotests: Perform the correct test in 082



In the "amend" section of 082, we perform a single "convert" test
(namely "convert -o help").  That does not make sense, especially
because we have done exactly that "convert" test earlier in 082 already.

Replacing "convert" by "amend" yields an error, which is correct because
there is no point in "amend" having a default format.  The user has to
either specify the format, or give a file for qemu-img to probe.

Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 718c0fce
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -212,7 +212,10 @@ run_qemu_img amend -f $IMGFMT -o backing_file="$TEST_IMG" -o ,, -o help "$TEST_I

# Leave out everything that isn't needed
run_qemu_img amend -f $IMGFMT -o help
run_qemu_img convert -o help

# amend requires specifying either a format explicitly, or a file
# which it can probe
run_qemu_img amend -o help

# Try help option for a format that does not support amendment
run_qemu_img amend -f bochs -o help
+2 −3
Original line number Diff line number Diff line
@@ -831,9 +831,8 @@ Creation options for 'qcow2':

Note that not all of these options may be amendable.

Testing: convert -o help
Supported options:
  size=<size>            - Virtual disk size
Testing: amend -o help
qemu-img: Expecting one image file name

Testing: amend -f bochs -o help
qemu-img: Format driver 'bochs' does not support option amendment