Received: from eggs.gnu.org ([2001:4830:134:3::10]:46424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOkc5-0000n8-1L for qemu-devel@nongnu.org; Wed, 25 Sep 2013 04:38:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOkby-0003nH-QB for qemu-devel@nongnu.org; Wed, 25 Sep 2013 04:38:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOkby-0003n7-Ih for qemu-devel@nongnu.org; Wed, 25 Sep 2013 04:38:18 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8P8cHwH002683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 Sep 2013 04:38:17 -0400 Date: Wed, 25 Sep 2013 16:38:15 +0800 From: Fam Zheng Message-ID: <20130925083815.GA14536@T430s.nay.redhat.com> References: <1379990464-2721-1-git-send-email-famz@redhat.com> <1380071674-11176-1-git-send-email-famz@redhat.com> <1380071674-11176-3-git-send-email-famz@redhat.com> <20130925082733.GB2898@dhcp-200-207.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130925082733.GB2898@dhcp-200-207.str.redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 2/2] qemu-iotests: add monolithicFlat creation test to 059 Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, stefanha@redhat.com On Wed, 09/25 10:27, Kevin Wolf wrote: > Am 25.09.2013 um 03:14 hat Fam Zheng geschrieben: > > Signed-off-by: Fam Zheng > > --- > > tests/qemu-iotests/059 | 5 +++++ > > tests/qemu-iotests/059.out | 7 +++++++ > > 2 files changed, 12 insertions(+) > > > > diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059 > > index b03429d..4bab098 100755 > > --- a/tests/qemu-iotests/059 > > +++ b/tests/qemu-iotests/059 > > @@ -66,6 +66,11 @@ poke_file "$TEST_IMG" "$capacity_offset" "\xff\xff\xff\xff" > > poke_file "$TEST_IMG" "$grain_table_size_offset" "\x01\x00\x00\x00" > > { $QEMU_IO -c "read 0 512" $TEST_IMG; } 2>&1 | _filter_qemu_io | _filter_testdir > > > > +echo "=== Testing monolithicFlat creation and opening ===" > > +echo > > +IMGOPTS="subformat=monolithicFlat" _make_test_img 64M > > +$QEMU_IMG info $TEST_IMG > > + > > # success, all done > > echo "*** done" > > rm -f $seq.full > > diff --git a/tests/qemu-iotests/059.out b/tests/qemu-iotests/059.out > > index 2146a1a..9b064b8 100644 > > --- a/tests/qemu-iotests/059.out > > +++ b/tests/qemu-iotests/059.out > > @@ -17,4 +17,11 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 > > L1 size too big > > qemu-io: can't open device TEST_DIR/t.vmdk: Could not open 'TEST_DIR/t.vmdk': Wrong medium type > > no file open, try 'help open' > > +=== Testing monolithicFlat creation and opening === > > + > > +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 > > +image: /home/fam/qemu/tests/qemu-iotests/scratch/t.vmdk > > You want to _filter_testdir the output. :-) > Oops! Otherwise only _fam_ can pass the test! Fam