From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0TDH-0003P8-EY for qemu-devel@nongnu.org; Mon, 15 Dec 2014 05:49:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0TDD-0007hP-0K for qemu-devel@nongnu.org; Mon, 15 Dec 2014 05:49:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0TDC-0007hD-Ny for qemu-devel@nongnu.org; Mon, 15 Dec 2014 05:49:10 -0500 Date: Mon, 15 Dec 2014 11:49:07 +0100 From: Kevin Wolf Message-ID: <20141215104907.GC4411@noname.str.redhat.com> References: <1418632081-20667-1-git-send-email-den@openvz.org> <1418632081-20667-5-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1418632081-20667-5-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 04/16] iotests: simple parallels XML disk descriptor file test added List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 15.12.2014 um 09:27 hat Denis V. Lunev geschrieben: > Signed-off-by: Denis V. Lunev > Acked-by: Roman Kagan > Reviewed-by: Jeff Cody > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > tests/qemu-iotests/076 | 6 ++++++ > tests/qemu-iotests/076.out | 4 ++++ > tests/qemu-iotests/sample_images/parallels-simple.xml.bz2 | Bin 0 -> 374 bytes > 3 files changed, 10 insertions(+) > create mode 100644 tests/qemu-iotests/sample_images/parallels-simple.xml.bz2 > > diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 > index 0139976..636fc58 100755 > --- a/tests/qemu-iotests/076 > +++ b/tests/qemu-iotests/076 > @@ -75,6 +75,12 @@ echo "== Read from a valid v2 image ==" > _use_sample_img parallels-v2.bz2 > { $QEMU_IO -c "read -P 0x11 0 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir > > +echo > +echo "== Read from a valid v2 image opened through xml ==" > +_use_sample_img parallels-v2.bz2 > +_use_sample_img parallels-simple.xml.bz2 _sample_img isn't made to be used twice in a single test case. It will forget to clean up the previously used decompressed images. Should be easy enough to modify it so that it saves a list of sample files instead of just the last one, but it needs to be done before we can do this. > +{ $QEMU_IO -c "read -P 0x11 0 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir > + > # success, all done > echo "*** done" > rm -f $seq.full Kevin