From patchwork Mon Mar 4 10:08:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Shinkevich X-Patchwork-Id: 10837513 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A42A613B5 for ; Mon, 4 Mar 2019 10:10:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F3A829F21 for ; Mon, 4 Mar 2019 10:10:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8322829F70; Mon, 4 Mar 2019 10:10:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 401DD29F21 for ; Mon, 4 Mar 2019 10:10:22 +0000 (UTC) Received: from localhost ([127.0.0.1]:51243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0kY9-0007D9-FJ for patchwork-qemu-devel@patchwork.kernel.org; Mon, 04 Mar 2019 05:10:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0kWi-0005k0-Dr for qemu-devel@nongnu.org; Mon, 04 Mar 2019 05:08:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0kWg-0005px-PB for qemu-devel@nongnu.org; Mon, 04 Mar 2019 05:08:52 -0500 Received: from relay.sw.ru ([185.231.240.75]:41432) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0kWe-0005fL-K0; Mon, 04 Mar 2019 05:08:50 -0500 Received: from [172.16.25.136] (helo=localhost.sw.ru) by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1h0kWW-0006jh-Vh; Mon, 04 Mar 2019 13:08:41 +0300 From: Andrey Shinkevich To: qemu-devel@nongnu.org, qemu-block@nongnu.org Date: Mon, 4 Mar 2019 13:08:37 +0300 Message-Id: <1551694120-768127-1-git-send-email-andrey.shinkevich@virtuozzo.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 185.231.240.75 Subject: [Qemu-devel] [PATCH 0/3] iotests: check whitelisted formats 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, vsementsov@virtuozzo.com, armbru@redhat.com, mreitz@redhat.com, rkagan@virtuozzo.com, andrey.shinkevich@virtuozzo.com, den@openvz.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Some test cases require specific formats to be supported by QEMU. The list of formats supported by the block layer doesn't take whitelists into account. This series manages this issue. The method decorator skip_if_unsupported() checks if requested formats are whitelisted. The sample output is shown with the sample test #139. Andrey Shinkevich (3): block: iterate_format with account of whitelisting iotests: ask QEMU for supported formats iotests: check whitelisted formats block.c | 23 ++++++++++++++++---- blockdev.c | 4 +++- include/block/block.h | 2 +- qemu-img.c | 2 +- tests/qemu-iotests/139 | 2 ++ tests/qemu-iotests/check | 16 +++++++++++++- tests/qemu-iotests/iotests.py | 50 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 91 insertions(+), 8 deletions(-)