From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Andrey Shinkevich Date: Mon, 4 Mar 2019 13:08:37 +0300 Message-Id: <1551694120-768127-1-git-send-email-andrey.shinkevich@virtuozzo.com> Subject: [Qemu-devel] [PATCH 0/3] iotests: check whitelisted formats List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: armbru@redhat.com, mreitz@redhat.com, kwolf@redhat.com, den@openvz.org, vsementsov@virtuozzo.com, rkagan@virtuozzo.com, andrey.shinkevich@virtuozzo.com 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(-) -- 1.8.3.1