qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v2 8/8] iotests: new test 209 for NBD BLOCK_STAT


From: Eric Blake
Subject: Re: [Qemu-block] [PATCH v2 8/8] iotests: new test 209 for NBD BLOCK_STATUS
Date: Tue, 13 Mar 2018 10:50:37 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/12/2018 10:21 AM, Vladimir Sementsov-Ogievskiy wrote:
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---



+
+iotests.verify_image_format(supported_fmts=['qcow2'])

Interesting that './check -nbd' doesn't run 209 (because that defaults to format -raw, but we need format -qcow2), but './check -nbd' and './check -qcow2 -nbd' do run it, so I've tested that it passes, and is quick.

+
+disk, nbd_sock = file_path('disk', 'nbd-sock')
+nbd_uri = 'nbd+unix:///exp?socket=' + nbd_sock
+
+qemu_img_create('-f', iotests.imgfmt, disk, '1M')
+qemu_io('-f', iotests.imgfmt, '-c', 'write 0 512K', disk)
+
+qemu_nbd('-k', nbd_sock, '-x', 'exp', '-f', iotests.imgfmt, disk)
+qemu_img_verbose('map', '-f', 'raw', '--output=json', nbd_uri)

And this one is easy enough to reproduce, whether I use shell or python. (Better than some of the python iotests that just have a line of '.....' where you have to scratch your head at how to reproduce failures).

Reviewed-by: Eric Blake <address@hidden>

+++ b/tests/qemu-iotests/group
@@ -202,3 +202,4 @@
  203 rw auto
  204 rw auto quick
  205 rw auto quick
+209 rw auto quick

the obvious context conflict as other tests land into master, but I don't mind that ;)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]