iotests: Support job-complete in run_job()
commit4688c4e32ec76004676470f11734478799673d6d
authorKevin Wolf <kwolf@redhat.com>
Tue, 19 Nov 2019 17:38:21 +0000 (19 18:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 18 Dec 2019 10:21:16 +0000 (18 11:21 +0100)
tree0ac3f5a61ffb699347bbf71b25a569e4ad335170
parent55824e0980f9cfe36a90d2d2acb7bb1ef8c41c39
iotests: Support job-complete in run_job()

Automatically complete jobs that have a 'ready' state and need an
explicit job-complete. Without this, run_job() would hang for such
jobs.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/qemu-iotests/iotests.py