From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH v2 4/4] qemu-iotests: skip 039 with ./check -nocache
Date: Thu, 9 Aug 2012 13:05:57 +0100 [thread overview]
Message-ID: <1344513957-17906-5-git-send-email-stefanha@linux.vnet.ibm.com> (raw)
In-Reply-To: <1344513957-17906-1-git-send-email-stefanha@linux.vnet.ibm.com>
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 <stefanha@linux.vnet.ibm.com>
---
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
next prev parent reply other threads:[~2012-08-09 12:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 12:05 [Qemu-devel] [PATCH v2 0/4] qcow2: clean-ups around lazy refcounts Stefan Hajnoczi
2012-08-09 12:05 ` [Qemu-devel] [PATCH v2 1/4] qed: mark image clean after repair succeeds Stefan Hajnoczi
2012-08-09 12:05 ` [Qemu-devel] [PATCH v2 2/4] qcow2: " Stefan Hajnoczi
2012-08-09 12:05 ` [Qemu-devel] [PATCH v2 3/4] block: add BLOCK_O_CHECK for qemu-img check Stefan Hajnoczi
2012-08-09 12:05 ` Stefan Hajnoczi [this message]
2012-08-09 15:02 ` [Qemu-devel] [PATCH v2 0/4] qcow2: clean-ups around lazy refcounts Kevin Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344513957-17906-5-git-send-email-stefanha@linux.vnet.ibm.com \
--to=stefanha@linux.vnet.ibm.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).