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 test #139.
v1: Discussed in the email thread with the message ID: <1551694120-768127-1-git-send-email-andrey.shinkev...@virtuozzo.com> Fixes and amendments suggested by Kevin Wolf were applied in v2. Andrey Shinkevich (4): iotests: open notrun files in text mode 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 | 3 +++ tests/qemu-iotests/check | 13 ++++++++++++- tests/qemu-iotests/iotests.py | 45 ++++++++++++++++++++++++++++++++++++++++++- 7 files changed, 83 insertions(+), 9 deletions(-) -- 1.8.3.1