From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYbhH-000801-VL for qemu-devel@nongnu.org; Thu, 28 Jun 2018 14:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYbhH-0001wz-4C for qemu-devel@nongnu.org; Thu, 28 Jun 2018 14:31:11 -0400 References: <20180628180042.3881-1-jsnow@redhat.com> <20180628180042.3881-3-jsnow@redhat.com> From: John Snow Message-ID: <1f1306ce-9f39-620e-69dd-c2437e086185@redhat.com> Date: Thu, 28 Jun 2018 14:31:04 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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: Eric Blake , qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: Kevin Wolf , Markus Armbruster , Max Reitz On 06/28/2018 02:10 PM, Eric Blake wrote: > On 06/28/2018 01:00 PM, John Snow wrote: >> Signed-off-by: John Snow >> --- >> =C2=A0 tests/qemu-iotests/222=C2=A0=C2=A0=C2=A0=C2=A0 | 149 >> +++++++++++++++++++++++++++++++++++++++++++++ >> =C2=A0 tests/qemu-iotests/222.out |=C2=A0 60 ++++++++++++++++++ >> =C2=A0 tests/qemu-iotests/group=C2=A0=C2=A0 |=C2=A0=C2=A0 1 + >> =C2=A0 3 files changed, 210 insertions(+) >> =C2=A0 create mode 100644 tests/qemu-iotests/222 >> =C2=A0 create mode 100644 tests/qemu-iotests/222.out >> >=20 >> + >> +=C2=A0=C2=A0=C2=A0 log('') >> +=C2=A0=C2=A0=C2=A0 log('--- Cleanup ---') >> +=C2=A0=C2=A0=C2=A0 log('') >> + >> +=C2=A0=C2=A0=C2=A0 #log(vm.hmp_qemu_io(srcNode, 'flush')) >> +=C2=A0=C2=A0=C2=A0 log(vm.qmp('block-job-cancel', device=3DsrcNode)) >=20 > Is the commented line still worthwhile to keep? NUTS. >=20 >> +=C2=A0=C2=A0=C2=A0 log(vm.qmp('nbd-server-stop')) >> +=C2=A0=C2=A0=C2=A0 log(vm.qmp('blockdev-del', node_name=3DtgtNode)) >> +=C2=A0=C2=A0=C2=A0 vm.shutdown() >> + >> +=C2=A0=C2=A0=C2=A0 log('') >> +=C2=A0=C2=A0=C2=A0 log('--- Confirming writes ---') >> +=C2=A0=C2=A0=C2=A0 log('') >> + >> +=C2=A0=C2=A0=C2=A0 for p in (overwrite + remainder): >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cmd =3D "read -P%s %s %s" = % p >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 log(cmd) >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 assert qemu_io_silent(base= _img_path, '-c', cmd) =3D=3D 0 >> + >=20 > Thanks for the additions compared to v1 (including the previously > missing .out file ;) > Reviewed-by: Eric Blake >