mirror of
https://github.com/qemu/qemu.git
synced 2025-07-29 14:43:25 +00:00
iotests: Fix timeout in run_job()
run_job() accepts a wait parameter for a timeout, but it doesn't actually use it. The only thing that is missing is passing it to events_wait(), so do that now. 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>
This commit is contained in:
parent
a96f0350e3
commit
55824e0980
@ -609,7 +609,7 @@ def run_job(self, job, auto_finalize=True, auto_dismiss=False,
|
||||
]
|
||||
error = None
|
||||
while True:
|
||||
ev = filter_qmp_event(self.events_wait(events))
|
||||
ev = filter_qmp_event(self.events_wait(events, timeout=wait))
|
||||
if ev['event'] != 'JOB_STATUS_CHANGE':
|
||||
if use_log:
|
||||
log(ev)
|
||||
|
Loading…
Reference in New Issue
Block a user