iotests: improve pause_job
commitc1bac161bb7ad27243776e90971c51cc38c2e1b6
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 1 Jun 2018 11:59:23 +0000 (1 14:59 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 11 Jun 2018 14:18:45 +0000 (11 16:18 +0200)
tree0d8df90dd097c530e24ad70ba2e13218584205b3
parent0682854f899d03c78befce9f5aae4a7e37655d25
iotests: improve pause_job

It's possible, that job was finished during waiting. In this case we
will see error message "Timeout waiting for job to pause" which is not
very informative. So, let's check during waiting iteration that the job
exists.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20180601115923.17159-1-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/iotests.py