aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/059
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-08-15 17:36:33 +0200
committerMax Reitz <mreitz@redhat.com>2019-09-03 14:55:35 +0200
commitcdc0dd2586d726f7b549be08a8e073f803cd5dc9 (patch)
tree2fe6d3ef914b40bb779d20742b99565eb386cdc6 /tests/qemu-iotests/059
parentf158ffdba62360b221047dee488450f8c49f6a22 (diff)
downloadqemu-cdc0dd2586d726f7b549be08a8e073f803cd5dc9.zip
qemu-cdc0dd2586d726f7b549be08a8e073f803cd5dc9.tar.gz
qemu-cdc0dd2586d726f7b549be08a8e073f803cd5dc9.tar.bz2
vmdk: Use bdrv_dirname() for relative extent paths
This makes iotest 033 pass with e.g. subformat=monolithicFlat. It also turns a former error in 059 into success. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20190815153638.4600-3-mreitz@redhat.com Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/059')
-rwxr-xr-xtests/qemu-iotests/0597
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059
index 279aee6..fbed5f9 100755
--- a/tests/qemu-iotests/059
+++ b/tests/qemu-iotests/059
@@ -114,9 +114,12 @@ $QEMU_IMG convert -f qcow2 -O vmdk -o subformat=streamOptimized "$TEST_IMG.qcow2
echo
echo "=== Testing monolithicFlat with internally generated JSON file name ==="
+# Should work, because bdrv_dirname() works fine with blkdebug
IMGOPTS="subformat=monolithicFlat" _make_test_img 64M
-$QEMU_IO -c "open -o driver=$IMGFMT,file.driver=blkdebug,file.image.filename=$TEST_IMG,file.inject-error.0.event=read_aio" 2>&1 \
- | _filter_testdir | _filter_imgfmt
+$QEMU_IO -c "open -o driver=$IMGFMT,file.driver=blkdebug,file.image.filename=$TEST_IMG,file.inject-error.0.event=read_aio" \
+ -c info \
+ 2>&1 \
+ | _filter_testdir | _filter_imgfmt | _filter_img_info
_cleanup_test_img
echo