From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnjbO-0005sS-6K for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnjbG-0008Tb-I9 for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:55:06 -0400 From: "Daniel P. Berrange" Date: Fri, 1 Sep 2017 11:54:34 +0100 Message-Id: <20170901105434.3288-3-berrange@redhat.com> In-Reply-To: <20170901105434.3288-1-berrange@redhat.com> References: <20170901105434.3288-1-berrange@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] iotests: blacklist 194 with the luks driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , Max Reitz , Stefan Hajnoczi , Fam Zheng , "Daniel P. Berrange" The 194 test has alot of code that assumes a simple image file. Rewriting this to work with luks is possible, but non-trivial, so blacklist the luks format for now. Signed-off-by: Daniel P. Berrange --- tests/qemu-iotests/194 | 1 + tests/qemu-iotests/iotests.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/194 b/tests/qemu-iotests/194 index a3e3bad664..bfe1859ecf 100755 --- a/tests/qemu-iotests/194 +++ b/tests/qemu-iotests/194 @@ -23,6 +23,7 @@ import os import atexit import iotests +iotests.verify_image_format(unsupported_fmts=['luks']) iotests.verify_platform(['linux']) img_size = '1G' diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 7233983f3c..3e7304b678 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -395,9 +395,11 @@ def notrun(reason): print '%s not run: %s' % (seq, reason) sys.exit(0) -def verify_image_format(supported_fmts=[]): +def verify_image_format(supported_fmts=[], unsupported_fmts=[]): if supported_fmts and (imgfmt not in supported_fmts): notrun('not suitable for this image format: %s' % imgfmt) + if unsupported_fmts and (imgfmt in unsupported_fmts): + notrun('not suitable for this image format: %s' % imgfmt) def verify_platform(supported_oses=['linux']): if True not in [sys.platform.startswith(x) for x in supported_oses]: -- 2.13.5