[Qemu-devel] [PATCH 1/2] qemu-iotests: skip test 205 for unsupported formats

Amador Pahim posted 2 patches 7 years, 11 months ago
Only 1 patches received!
[Qemu-devel] [PATCH 1/2] qemu-iotests: skip test 205 for unsupported formats
Posted by Amador Pahim 7 years, 11 months ago
Using bochs or cloop, qemu-img will fail with:

  Format driver 'bochs' does not support image creation

Signed-off-by: Amador Pahim <apahim@redhat.com>
---
 tests/qemu-iotests/205 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205
index e7b2eae51d..fff9be97d2 100644
--- a/tests/qemu-iotests/205
+++ b/tests/qemu-iotests/205
@@ -24,6 +24,9 @@ import iotests
 import time
 from iotests import qemu_img_create, qemu_io, filter_qemu_io, QemuIoInteractive
 
+
+iotests.verify_image_format(unsupported_fmts=['bochs', 'cloop'])
+
 nbd_sock = 'nbd_sock'
 nbd_uri = 'nbd+unix:///exp?socket=' + nbd_sock
 disk = os.path.join(iotests.test_dir, 'disk')
-- 
2.14.3


Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] qemu-iotests: skip test 205 for unsupported formats
Posted by Eric Blake 7 years, 11 months ago
On 03/09/2018 04:41 AM, Amador Pahim wrote:
> Using bochs or cloop, qemu-img will fail with:
> 
>    Format driver 'bochs' does not support image creation
> 
> Signed-off-by: Amador Pahim <apahim@redhat.com>
> ---
>   tests/qemu-iotests/205 | 3 +++
>   1 file changed, 3 insertions(+)

Reviewed-by: Eric Blake <eblake@redhat.com>

> 
> diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205
> index e7b2eae51d..fff9be97d2 100644
> --- a/tests/qemu-iotests/205
> +++ b/tests/qemu-iotests/205
> @@ -24,6 +24,9 @@ import iotests
>   import time
>   from iotests import qemu_img_create, qemu_io, filter_qemu_io, QemuIoInteractive
>   
> +
> +iotests.verify_image_format(unsupported_fmts=['bochs', 'cloop'])
> +
>   nbd_sock = 'nbd_sock'
>   nbd_uri = 'nbd+unix:///exp?socket=' + nbd_sock
>   disk = os.path.join(iotests.test_dir, 'disk')
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

  • [Qemu-devel] [PATCH 1/2] qemu-iotests: skip test 205 for unsupported formats