qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qemu-iotests: Add _unsupported_fmt helper

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 <nirsof@gmail.com>
Message-id: 20170201003120.23378-3-nirsof@gmail.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>

authored by

Nir Soffer and committed by
Max Reitz
b4a2caa4 b7aa1315

+11
+11
tests/qemu-iotests/common.rc
··· 355 355 _notrun "not suitable for this image format: $IMGFMT" 356 356 } 357 357 358 + # tests whether $IMGFMT is one of the unsupported image format for a test 359 + # 360 + _unsupported_fmt() 361 + { 362 + for f; do 363 + if [ "$f" = "$IMGFMT" ]; then 364 + _notrun "not suitable for this image format: $IMGFMT" 365 + fi 366 + done 367 + } 368 + 358 369 # tests whether $IMGPROTO is one of the supported image protocols for a test 359 370 # 360 371 _supported_proto()