Skip to content

Commit

Permalink
qemu-iotests: Introduce _unsupported_imgopts
Browse files Browse the repository at this point in the history
Introduce _unsupported_imgopts that causes _notrun for specific image
options.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
Fam Zheng authored and kevmw committed Jan 22, 2014
1 parent e04fb07 commit 2c77f52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/qemu-iotests/common.rc
Expand Up @@ -406,6 +406,17 @@ _default_cache_mode()
fi
}

_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
}

# this test requires that a specified command (executable) exists
#
_require_command()
Expand Down

0 comments on commit 2c77f52

Please sign in to comment.