aboutsummaryrefslogtreecommitdiff
path: root/hw/alpha
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-09-17 11:19:59 +0200
committerMax Reitz <mreitz@redhat.com>2019-10-28 11:22:30 +0100
commit6be012252018249d3a2843a0143ee8cca41c276d (patch)
treebeefd2cb040c0ab361b73492730be382234d83e5 /hw/alpha
parenta6f8f9f82c857cf31cda702e6c62d623e8ddedd5 (diff)
iotests: Allow skipping test cases
case_notrun() does not actually skip the current test case. It just adds a "notrun" note and then returns to the caller, who manually has to skip the test. Generally, skipping a test case is as simple as returning from the current function, but not always: For example, this model does not allow skipping tests already in the setUp() function. Thus, add a QMPTestCase.case_skip() function that invokes case_notrun() and then self.skipTest(). To make this work, we need to filter the information on how many test cases were skipped from the unittest output. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Message-id: 20190917092004.999-3-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/alpha')
0 files changed, 0 insertions, 0 deletions