From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlCKL-0006sr-TC for qemu-devel@nongnu.org; Tue, 26 Nov 2013 01:40:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlCKF-0001KB-Ti for qemu-devel@nongnu.org; Tue, 26 Nov 2013 01:40:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlCKF-0001K3-Jp for qemu-devel@nongnu.org; Tue, 26 Nov 2013 01:40:47 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAQ6elU8015975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Nov 2013 01:40:47 -0500 From: Fam Zheng Date: Tue, 26 Nov 2013 14:40:32 +0800 Message-Id: <1385448034-28702-2-git-send-email-famz@redhat.com> In-Reply-To: <1385448034-28702-1-git-send-email-famz@redhat.com> References: <1385448034-28702-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] qemu-iotests: Introduce _unsupported_imgopts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com Introduce _unsupported_imgopts that causes _notrun for specific image options. Signed-off-by: Fam Zheng --- 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 7f62457..d465c48 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -387,6 +387,17 @@ _supported_os() _notrun "not suitable for this OS: $HOSTOS" } +_unsupported_imgopts() +{ + for bad_opt + do + if echo "$IMGOPTS" | grep -q 2>/dev/null "$bad_opt" + then + _notrun "not suitable for image option: $bad_opt" + fi + done +} + _unsupported_qemu_io_options() { for bad_opt -- 1.8.4.2