From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzRVE-0004ur-Lr for qemu-devel@nongnu.org; Thu, 09 Aug 2012 08:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzRVA-0002sI-9L for qemu-devel@nongnu.org; Thu, 09 Aug 2012 08:06:12 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:45902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzRVA-0002s0-1M for qemu-devel@nongnu.org; Thu, 09 Aug 2012 08:06:08 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Aug 2012 13:06:07 +0100 Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q79C65mh2977890 for ; Thu, 9 Aug 2012 13:06:06 +0100 Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q79C65jZ009676 for ; Thu, 9 Aug 2012 06:06:05 -0600 From: Stefan Hajnoczi Date: Thu, 9 Aug 2012 13:05:57 +0100 Message-Id: <1344513957-17906-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1344513957-17906-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1344513957-17906-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 4/4] qemu-iotests: skip 039 with ./check -nocache List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , 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 --- tests/qemu-iotests/039 | 1 + tests/qemu-iotests/common.rc | 14 ++++++++++++++ 2 files changed, 15 insertions(+) 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 7782808..c5129f4 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() -- 1.7.10.4