qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 18/21] iotests: add QMP event waiting queue


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v6 18/21] iotests: add QMP event waiting queue
Date: Wed, 22 Apr 2015 18:50:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 18.04.2015 01:50, John Snow wrote:
A filter is added to allow callers to request very specific
events to be pulled from the event queue, while leaving undesired
events still in the stream.

This allows us to poll for completion data for multiple asynchronous
events in any arbitrary order.

A new timeout context is added to the qmp pull_event method's
wait parameter to allow tests to fail if they do not complete
within some expected period of time.

Also fixed is a bug in qmp.pull_event where we try to retrieve an event
from an empty list if we attempt to retrieve an event with wait=False
but no events have occurred.

Signed-off-by: John Snow <address@hidden>
---
  scripts/qmp/qmp.py            | 95 +++++++++++++++++++++++++++++--------------
  tests/qemu-iotests/iotests.py | 38 +++++++++++++++++
  2 files changed, 103 insertions(+), 30 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]