qemu-e2k/tests/qemu-iotests/tests
John Snow 50465f94d2 python/machine: raise VMLaunchFailure exception from launch()
This allows us to pack in some extra information about the failure,
which guarantees that if the caller did not *intentionally* cause a
failure (by capturing this Exception), some pretty good clues will be
printed at the bottom of the traceback information.

This will help make failures in the event of a non-negative return code
more obvious when they go unhandled; the current behavior in
_post_shutdown() is to print a warning message only in the event of
signal-based terminations (for negative return codes).

(Note: In Python, catching BaseException instead of Exception catches a
broader array of Exception events, including SystemExit and
KeyboardInterrupt. We do not want to "wrap" such exceptions as a
VMLaunchFailure, because that will 'downgrade' the exception from a
BaseException to a regular Exception. We do, however, want to perform
cleanup in either case, so catch on the broadest scope and
wrap-and-re-raise only in the more targeted scope.)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20220201041134.1237016-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2022-02-02 14:12:22 -05:00
..
block-status-cache iotests/block-status-cache: New test 2022-01-28 16:55:23 -06:00
block-status-cache.out iotests/block-status-cache: New test 2022-01-28 16:55:23 -06:00
fuse-allow-other iotests/fuse-allow-other: Test allow-other 2021-07-09 12:26:05 +02:00
fuse-allow-other.out iotests/fuse-allow-other: Test allow-other 2021-07-09 12:26:05 +02:00
image-fleecing pylint: fix errors and warnings generated by tests/qemu-iotests/297 2021-11-02 12:47:51 +01:00
image-fleecing.out iotests/image-fleecing: add test-case for copy-before-write filter 2021-09-01 14:38:08 +02:00
migrate-bitmaps-postcopy-test iotests: specify some unsupported_imgopts for python iotests 2022-02-01 10:51:39 +01:00
migrate-bitmaps-postcopy-test.out
migrate-bitmaps-test iotests: specify some unsupported_imgopts for python iotests 2022-02-01 10:51:39 +01:00
migrate-bitmaps-test.out
migrate-during-backup block: bdrv_inactivate_recurse(): check for permissions and fix crash 2021-09-15 15:54:07 +02:00
migrate-during-backup.out tests: add migrate-during-backup 2021-09-15 15:54:07 +02:00
migration-permissions iotests/migration-permissions: New test 2022-02-01 10:51:39 +01:00
migration-permissions.out iotests/migration-permissions: New test 2022-02-01 10:51:39 +01:00
mirror-ready-cancel-error iotests/MRCE: Write data to source 2022-02-01 10:51:39 +01:00
mirror-ready-cancel-error.out iotests: Add mirror-ready-cancel-error test 2021-10-07 10:42:50 +02:00
mirror-top-perms python/machine: raise VMLaunchFailure exception from launch() 2022-02-02 14:12:22 -05:00
mirror-top-perms.out iotests: Test mirror-top filter permissions 2021-04-09 18:00:29 +02:00
nbd-qemu-allocation iotests: Improve and rename test 309 to nbd-qemu-allocation 2021-07-12 10:56:41 -05:00
nbd-qemu-allocation.out qemu-img: Make unallocated part of backing chain obvious in map 2021-07-12 11:10:53 -05:00
nbd-reconnect-on-open iotests: add nbd-reconnect-on-open test 2021-12-23 09:40:34 +01:00
nbd-reconnect-on-open.out iotests: add nbd-reconnect-on-open test 2021-12-23 09:40:34 +01:00
parallels-read-bitmap iotests: add parallels-read-bitmap test 2021-03-08 14:56:55 +01:00
parallels-read-bitmap.out iotests: add parallels-read-bitmap test 2021-03-08 14:56:55 +01:00
qemu-img-bitmaps qemu-img: Add --skip-broken-bitmaps for 'convert --bitmaps' 2021-07-21 14:14:41 -05:00
qemu-img-bitmaps.out qemu-img: Add --skip-broken-bitmaps for 'convert --bitmaps' 2021-07-21 14:14:41 -05:00
qsd-jobs iotests/qsd-jobs: Filter events in the first test 2021-04-09 18:00:29 +02:00
qsd-jobs.out job: @force parameter for job_cancel_sync() 2021-10-07 10:42:09 +02:00
remove-bitmap-from-backing iotests: specify some unsupported_imgopts for python iotests 2022-02-01 10:51:39 +01:00
remove-bitmap-from-backing.out iotests: add test for removing persistent bitmap from backing file 2021-04-09 18:00:29 +02:00
stream-error-on-reset iotests/stream-error-on-reset: New test 2022-01-14 12:03:16 +01:00
stream-error-on-reset.out iotests/stream-error-on-reset: New test 2022-01-14 12:03:16 +01:00