From patchwork Fri Aug 10 16:47:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 176549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 49E5F2C0040 for ; Sat, 11 Aug 2012 03:10:43 +1000 (EST) Received: from localhost ([::1]:50588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsO6-00088g-EY for incoming@patchwork.ozlabs.org; Fri, 10 Aug 2012 12:48:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsNM-0006vq-8m for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:47:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzsNJ-00087r-D4 for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:47:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzsNJ-00087i-58 for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:47:49 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7AGll9w018938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Aug 2012 12:47:47 -0400 Received: from dhcp-5-188.str.redhat.com (vpn1-5-75.ams2.redhat.com [10.36.5.75]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7AGlVXb030123; Fri, 10 Aug 2012 12:47:46 -0400 From: Kevin Wolf To: anthony@codemonkey.ws Date: Fri, 10 Aug 2012 18:47:29 +0200 Message-Id: <1344617249-6620-12-git-send-email-kwolf@redhat.com> In-Reply-To: <1344617249-6620-1-git-send-email-kwolf@redhat.com> References: <1344617249-6620-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 11/11] qemu-iotests: skip 039 with ./check -nocache X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Stefan Hajnoczi When the qemu-io --nocache option is used the 039 test case cannot abort QEMU at a point where the image is dirty. Skip the test case. Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- tests/qemu-iotests/039 | 1 + tests/qemu-iotests/common.rc | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039 index a749fcf..c5ae806 100755 --- a/tests/qemu-iotests/039 +++ b/tests/qemu-iotests/039 @@ -44,6 +44,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow2 _supported_proto generic _supported_os Linux +_unsupported_qemu_io_options --nocache size=128M diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 6b80516..d534e94 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -297,6 +297,20 @@ _supported_os() _notrun "not suitable for this OS: $HOSTOS" } +_unsupported_qemu_io_options() +{ + for bad_opt + do + for opt in $QEMU_IO_OPTIONS + do + if [ "$bad_opt" = "$opt" ] + then + _notrun "not suitable for qemu-io option: $bad_opt" + fi + done + done +} + # this test requires that a specified command (executable) exists # _require_command()