diff options
author | Andrey Shinkevich | 2019-09-04 11:11:21 +0200 |
---|---|---|
committer | Kevin Wolf | 2019-09-13 12:18:37 +0200 |
commit | 5ff1c2c830c711a6d2b2054a6a6eb8469b8c922f (patch) | |
tree | ce757ff59b04a910d63007f04350a5761cc8af62 | |
parent | iotests: exclude killed processes from running under Valgrind (diff) | |
download | qemu-5ff1c2c830c711a6d2b2054a6a6eb8469b8c922f.tar.gz qemu-5ff1c2c830c711a6d2b2054a6a6eb8469b8c922f.tar.xz qemu-5ff1c2c830c711a6d2b2054a6a6eb8469b8c922f.zip |
iotests: Add casenotrun report to bash tests
The new function _casenotrun() is to be invoked if a test case cannot
be run for some reason. The user will be notified by a message passed
to the function. It is the caller's responsibility to make skipped a
particular test.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | tests/qemu-iotests/common.rc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 51c57dbfe0..e45cdfa66b 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -455,6 +455,15 @@ _notrun() exit } +# bail out, setting up .casenotrun file +# The function _casenotrun() is used as a notifier. It is the +# caller's responsibility to make skipped a particular test. +# +_casenotrun() +{ + echo " [case not run] $*" >>"$OUTPUT_DIR/$seq.casenotrun" +} + # just plain bail out # _fail() |