diff options
author | Peter Xu <peterx@redhat.com> | 2018-04-08 11:05:42 +0800 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2018-04-10 07:42:48 -0500 |
commit | c3988519c4fc3e458fbac4f7814dd775ef4a68d7 (patch) | |
tree | 6a62f4ffe09424d7cd33ab4557229b4bba203fdc /disas.c | |
parent | fb4fe32d5b6290deabe752b51cc1cc2a9e8573db (diff) |
iotests: fix wait_until_completed()
If there are more than one events, wait_until_completed() might return
the 2nd event even if the 1st event is JOB_COMPLETED, since the for loop
will continue to run even if completed is set to True.
It never happened before, but it can be triggered when OOB is enabled
due to the RESUME startup message. Fix that up.
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180408030542.17855-1-peterx@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'disas.c')
0 files changed, 0 insertions, 0 deletions