Received: from eggs.gnu.org ([2001:4830:134:3::10]:33302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjTaF-0000bM-5y for qemu-devel@nongnu.org; Thu, 21 Nov 2013 07:42:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjTa6-0006mb-PV for qemu-devel@nongnu.org; Thu, 21 Nov 2013 07:42:11 -0500 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:47626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjTa6-0006mI-JZ for qemu-devel@nongnu.org; Thu, 21 Nov 2013 07:42:02 -0500 Received: by mail-wi0-f175.google.com with SMTP id hi5so3751153wib.8 for ; Thu, 21 Nov 2013 04:42:01 -0800 (PST) Date: Thu, 21 Nov 2013 13:41:59 +0100 From: Stefan Hajnoczi Message-ID: <20131121124158.GB7466@stefanha-thinkpad.redhat.com> References: <1384933457-26953-1-git-send-email-famz@redhat.com> <1384933457-26953-6-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1384933457-26953-6-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, WenchaoXia On Wed, Nov 20, 2013 at 03:44:16PM +0800, Fam Zheng wrote: > The "raw" doesn't always work on certain file systems (e.g. tmpfs). Use > qcow2 to make the allocation status explicit. > > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/048 | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/tests/qemu-iotests/048 b/tests/qemu-iotests/048 > index 9def7fc..0fb5d2c 100755 > --- a/tests/qemu-iotests/048 > +++ b/tests/qemu-iotests/048 > @@ -88,7 +88,13 @@ event = "read_aio" > errno = "5" > once ="off" > EOF > -_make_test_img $size > +if [ "$IMGFMT" = "raw" ]; then > + # For raw the allocation status for new image depends on file system, force > + # qcow2 in this case, since the tested code is in block layer > + IMGFMT=qcow2 _make_test_img $size | _filter_imgfmt If it can't be tested, skip the test. Don't silently test something else. Stefan