iotests: teach run_job to cancel pending jobs
commitd443b74b3d752640e57a0f7e8efcc09d33504e63
authorJohn Snow <jsnow@redhat.com>
Mon, 29 Jul 2019 20:35:53 +0000 (29 16:35 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 16 Aug 2019 20:28:02 +0000 (16 16:28 -0400)
treeaeac260d150d77357778abcde33829c3aeaec70a
parent456a2d5ac7641c7e75c76328a561b528a8607a8e
iotests: teach run_job to cancel pending jobs

run_job can cancel pending jobs to simulate failure. This lets us use
the pending callback to issue test commands while the job is open, but
then still have the job fail in the end.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190709232550.10724-15-jsnow@redhat.com
[Maintainer edit: Merge conflict resolution in run_job]
Signed-off-by: John Snow <jsnow@redhat.com>
tests/qemu-iotests/iotests.py