From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYbN1-0002wF-Qz for qemu-devel@nongnu.org; Thu, 28 Jun 2018 14:10:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYbN0-0006D5-DH for qemu-devel@nongnu.org; Thu, 28 Jun 2018 14:10:15 -0400 References: <20180628180042.3881-1-jsnow@redhat.com> <20180628180042.3881-3-jsnow@redhat.com> From: Eric Blake Message-ID: Date: Thu, 28 Jun 2018 13:10:04 -0500 MIME-Version: 1.0 In-Reply-To: <20180628180042.3881-3-jsnow@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 2/2] iotests: add 222 to test basic fleecing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: Max Reitz , Kevin Wolf , Markus Armbruster On 06/28/2018 01:00 PM, John Snow wrote: > Signed-off-by: John Snow > --- > tests/qemu-iotests/222 | 149 +++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/222.out | 60 ++++++++++++++++++ > tests/qemu-iotests/group | 1 + > 3 files changed, 210 insertions(+) > create mode 100644 tests/qemu-iotests/222 > create mode 100644 tests/qemu-iotests/222.out > > + > + log('') > + log('--- Cleanup ---') > + log('') > + > + #log(vm.hmp_qemu_io(srcNode, 'flush')) > + log(vm.qmp('block-job-cancel', device=srcNode)) Is the commented line still worthwhile to keep? > + log(vm.qmp('nbd-server-stop')) > + log(vm.qmp('blockdev-del', node_name=tgtNode)) > + vm.shutdown() > + > + log('') > + log('--- Confirming writes ---') > + log('') > + > + for p in (overwrite + remainder): > + cmd = "read -P%s %s %s" % p > + log(cmd) > + assert qemu_io_silent(base_img_path, '-c', cmd) == 0 > + Thanks for the additions compared to v1 (including the previously missing .out file ;) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org