* [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks
@ 2017-02-14 16:21 Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 1/2] qemu-iotests: Test 137 only supports 'file' protocol Jeff Cody
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jeff Cody @ 2017-02-14 16:21 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-block, kwolf, mreitz
Some minor qemu-iotest tweaks.
The second patch makes it easier to add some upcoming protocols such as VXHS,
that do not support .bdrv_create.
Jeff Cody (2):
qemu-iotests: Test 137 only supports 'file' protocol
qemu-iotests: add ability to exclude certain protocols from tests
tests/qemu-iotests/137 | 2 +-
tests/qemu-iotests/common.rc | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
--
2.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 1/2] qemu-iotests: Test 137 only supports 'file' protocol
2017-02-14 16:21 [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Jeff Cody
@ 2017-02-14 16:21 ` Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: add ability to exclude certain protocols from tests Jeff Cody
2017-02-14 19:05 ` [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Kevin Wolf
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Cody @ 2017-02-14 16:21 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-block, kwolf, mreitz
Since test 137 make uses of qcow2.py, only local files are supported.
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
tests/qemu-iotests/137 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/137 b/tests/qemu-iotests/137
index e5e30de..eb91e51 100755
--- a/tests/qemu-iotests/137
+++ b/tests/qemu-iotests/137
@@ -39,7 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
. ./common.qemu
_supported_fmt qcow2
-_supported_proto generic
+_supported_proto file
_supported_os Linux
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 2/2] qemu-iotests: add ability to exclude certain protocols from tests
2017-02-14 16:21 [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 1/2] qemu-iotests: Test 137 only supports 'file' protocol Jeff Cody
@ 2017-02-14 16:21 ` Jeff Cody
2017-02-14 19:05 ` [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Kevin Wolf
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Cody @ 2017-02-14 16:21 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-block, kwolf, mreitz
Add the ability for shell script tests to exclude specific
protocols. This is useful to allow all protocols except ones known to
not support a feature used in the test (e.g. .bdrv_create).
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
tests/qemu-iotests/common.rc | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index a3d904f..6c0fd4c 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -379,6 +379,18 @@ _supported_proto()
_notrun "not suitable for this image protocol: $IMGPROTO"
}
+# tests whether $IMGPROTO is specified as an unsupported image protocol for a test
+#
+_unsupported_proto()
+{
+ for f; do
+ if [ "$f" = "$IMGPROTO" ]; then
+ _notrun "not suitable for this image protocol: $IMGPROTO"
+ return
+ fi
+ done
+}
+
# tests whether the host OS is one of the supported OSes for a test
#
_supported_os()
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks
2017-02-14 16:21 [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 1/2] qemu-iotests: Test 137 only supports 'file' protocol Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: add ability to exclude certain protocols from tests Jeff Cody
@ 2017-02-14 19:05 ` Kevin Wolf
2 siblings, 0 replies; 4+ messages in thread
From: Kevin Wolf @ 2017-02-14 19:05 UTC (permalink / raw)
To: Jeff Cody; +Cc: qemu-devel, qemu-block, mreitz
Am 14.02.2017 um 17:21 hat Jeff Cody geschrieben:
> Some minor qemu-iotest tweaks.
>
> The second patch makes it easier to add some upcoming protocols such as VXHS,
> that do not support .bdrv_create.
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-14 19:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 16:21 [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 1/2] qemu-iotests: Test 137 only supports 'file' protocol Jeff Cody
2017-02-14 16:21 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: add ability to exclude certain protocols from tests Jeff Cody
2017-02-14 19:05 ` [Qemu-devel] [PATCH 0/2] qemu-iotest tweaks Kevin Wolf
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).