From nobody Sun Feb 8 19:56:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1485909259458571.2544055962557; Tue, 31 Jan 2017 16:34:19 -0800 (PST) Received: from localhost ([::1]:41935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYisL-0004p7-Ci for importer@patchew.org; Tue, 31 Jan 2017 19:34:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYiqf-0003zn-Sc for qemu-devel@nongnu.org; Tue, 31 Jan 2017 19:32:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYiqf-0001P0-4p for qemu-devel@nongnu.org; Tue, 31 Jan 2017 19:32:33 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34379) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYiqe-0001OV-VQ; Tue, 31 Jan 2017 19:32:33 -0500 Received: by mail-wm0-x242.google.com with SMTP id c85so1993778wmi.1; Tue, 31 Jan 2017 16:32:32 -0800 (PST) Received: from lean.local (bzq-79-181-80-51.red.bezeqint.net. [79.181.80.51]) by smtp.gmail.com with ESMTPSA id e14sm26518840wmd.14.2017.01.31.16.32.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 16:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V77kzbdvexJFO5fqRKc+v+GnkeRPJMsTqUqwXzSSRiM=; b=GNljaJJCP0a/I/yBuzJJaGYfxDzjv5qP3N7+zO24b6+bZy6Gh6+SQ4plL9/3Mdd7rz YT7jZn8vNh7s1CVMFMpAjax8Imz0pwrqmRCb1/GMI+A1BiE8zDjyGuqA/CpViVI6sLKt zs3V6qIeZRN7CuXDB1pJt3d7iIifVe2QozvJp0RvbO+RobIRgFI2PlNSQtA1iT56L/6b DhOv0Z06pMp6vB0guM1hPxmkmYpm1JyAWIylvd56+kjLtaeYmAjzMpG+ZNRByEmsAvnV rYmwlqvgup7t/bM7jIUzR/Hz6yAnyNe2cYykl/rbvhyvVxQ+cOG1D2v+m90NnK18bpgS dm5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V77kzbdvexJFO5fqRKc+v+GnkeRPJMsTqUqwXzSSRiM=; b=tCA2lIV8h/3ThjRknHNMxZT1yDENhbULxhwWEebx6YbuMqUddD8r3j9XGICPnc3Zle m/njm5wQyRmH/gHlG9qTKeb0mf/9ADhN8r/vaJGLWd18iHBKZK0TIOp9wHAn5zPBeHfb yb7suGM/9eP36Jtyk1xkEgnprFX60rW/wWKVoXml1LAolvfKn2Cuz2mEkAFdGfBUyj91 OC6soP0qoDOULmuG9yFxu9qA76DbXGTvqdcmSub4qP9gkfbqvarjtEbfrBbxYeUU19wB becqMwXyvUjGcIYzbjFOfEziIFyG505xtENDju+FORE3bfWFd74BgyDa0MW/38ozyWgL bZ3g== X-Gm-Message-State: AIkVDXJy9d/t2bFaHaeo1+xocPeiVwpcg8MA1eoa3lsEDwK3/+3s3vW90wPSvqcZqBgK9Q== X-Received: by 10.223.161.158 with SMTP id u30mr63075wru.152.1485909151873; Tue, 31 Jan 2017 16:32:31 -0800 (PST) From: Nir Soffer To: qemu-devel@nongnu.org Date: Wed, 1 Feb 2017 02:31:19 +0200 Message-Id: <20170201003120.23378-3-nirsof@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170201003120.23378-1-nirsof@gmail.com> References: <20170201003120.23378-1-nirsof@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH v5 2/3] qemu-iotests: Add _unsupported_fmt helper X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, Nir Soffer , qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This helper allows adding tests supporting any format expect the specified formats. This may be useful to test that many formats behave in a common way. Signed-off-by: Nir Soffer --- tests/qemu-iotests/common.rc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 3213765..c6d5d81 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -355,6 +355,17 @@ _supported_fmt() _notrun "not suitable for this image format: $IMGFMT" } =20 +# tests whether $IMGFMT is one of the unsupported image format for a test +# +_unsupported_fmt() +{ + for f; do + if [ "$f" =3D "$IMGFMT" ]; then + _notrun "not suitable for this image format: $IMGFMT" + fi + done +} + # tests whether $IMGPROTO is one of the supported image protocols for a te= st # _supported_proto() --=20 2.9.3