qemu-iotests: Add VM.run_job()
authorKevin Wolf <kwolf@redhat.com>
Tue, 29 May 2018 18:52:57 +0000 (20:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 May 2018 11:31:14 +0000 (13:31 +0200)
commitfc47d8513b45b1968b0ae32d4bb2f96d3aca066a
tree2a0a6fb6f774b73949be28846a59c8070f35bc4c
parent6b605adec4d7491488d9cfb50bc256e667d8caf1
qemu-iotests: Add VM.run_job()

Add an iotests.py function that runs a job and only returns when it is
destroyed. An error is logged when the job failed and job-finalize and
job-dismiss commands are issued if necessary.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
tests/qemu-iotests/iotests.py