[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v6 18/21] iotests: add QMP event waiting queue
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH v6 18/21] iotests: add QMP event waiting queue |
Date: |
Thu, 23 Apr 2015 15:24:06 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Apr 17, 2015 at 07:50:06PM -0400, 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: Stefan Hajnoczi <address@hidden>
pgpquZLJAlQ5C.pgp
Description: PGP signature
- Re: [Qemu-block] [PATCH v6 10/21] qmp: Add support of "dirty-bitmap" sync mode for drive-backup, (continued)
- [Qemu-block] [PATCH v6 13/21] block: add BdrvDirtyBitmap documentation, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 11/21] qmp: add block-dirty-bitmap-clear, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 14/21] block: Ensure consistent bitmap function prototypes, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 16/21] hbitmap: truncate tests, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 15/21] block: Resize bitmaps on bdrv_truncate, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 18/21] iotests: add QMP event waiting queue, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 17/21] iotests: add invalid input incremental backup tests, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 19/21] iotests: add simple incremental backup case, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 21/21] iotests: add incremental backup granularity tests, John Snow, 2015/04/17
- [Qemu-block] [PATCH v6 20/21] iotests: add incremental backup failure recovery test, John Snow, 2015/04/17
- Re: [Qemu-block] [PATCH v6 00/21] block: transactionless incremental backup series, Stefan Hajnoczi, 2015/04/23