Introduce _unsupported_imgopts that causes _notrun for specific image options.
Signed-off-by: Fam Zheng <f...@redhat.com> --- 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