OSDN Git Service

iotests: Add test for relative backing file names
authorMax Reitz <mreitz@redhat.com>
Wed, 26 Nov 2014 16:20:29 +0000 (17:20 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:56 +0000 (11:47 +0000)
commit527ab22a2a268421564cfba3409d081aee22c22b
treeb6dfad7ba0bc3d03d139c4be7bce03c42f91d3fe
parent1085daf9411e355ce3bd6d7034e23a8405599889
iotests: Add test for relative backing file names

Sometimes, qemu does not have a filename to work with, so it does not
know which directory to use for a backing file specified by a relative
filename. Add a test which tests that qemu exits with an appropriate
error message.

Additionally, add a test for qemu-img create with a backing filename
relative to the backed image's base directory while omitting the image
size.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/110 [new file with mode: 0755]
tests/qemu-iotests/110.out [new file with mode: 0644]
tests/qemu-iotests/group