mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
iotests: Test convert -n -B to backing-less target
This must not crash. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200121155915.98232-3-mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
c69291e712
commit
f535cc90b5
2 changed files with 19 additions and 0 deletions
|
@ -276,6 +276,20 @@ $QEMU_IMG convert -O $IMGFMT -n "$TEST_IMG" "$TEST_IMG".orig
|
|||
|
||||
$QEMU_IMG compare "$TEST_IMG" "$TEST_IMG".orig
|
||||
|
||||
echo
|
||||
echo '=== -n -B to an image without a backing file ==='
|
||||
echo
|
||||
|
||||
# Base for the output
|
||||
TEST_IMG="$TEST_IMG".base _make_test_img 64M
|
||||
|
||||
# Output that does have $TEST_IMG.base set as its (implicit) backing file
|
||||
TEST_IMG="$TEST_IMG".orig _make_test_img 64M
|
||||
|
||||
# Convert with -n, which should not confuse -B with "target BDS has a
|
||||
# backing file"
|
||||
$QEMU_IMG convert -O $IMGFMT -B "$TEST_IMG".base -n "$TEST_IMG" "$TEST_IMG".orig
|
||||
|
||||
# success, all done
|
||||
echo '*** done'
|
||||
rm -f $seq.full
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue