From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlI3D-0008LF-Ie for qemu-devel@nongnu.org; Thu, 23 Apr 2015 10:24:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlI3A-0001Xl-CB for qemu-devel@nongnu.org; Thu, 23 Apr 2015 10:24:23 -0400 Date: Thu, 23 Apr 2015 15:24:06 +0100 From: Stefan Hajnoczi Message-ID: <20150423142406.GH20959@stefanha-thinkpad.redhat.com> References: <1429314609-29776-1-git-send-email-jsnow@redhat.com> <1429314609-29776-19-git-send-email-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bygAmIonOAIqBxQB" Content-Disposition: inline In-Reply-To: <1429314609-29776-19-git-send-email-jsnow@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v6 18/21] iotests: add QMP event waiting queue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: famz@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org, armbru@redhat.com, vsementsov@parallels.com, stefanha@redhat.com, mreitz@redhat.com --bygAmIonOAIqBxQB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > This allows us to poll for completion data for multiple asynchronous > events in any arbitrary order. >=20 > 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. >=20 > 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=3DFalse > but no events have occurred. >=20 > Signed-off-by: John Snow > --- > scripts/qmp/qmp.py | 95 +++++++++++++++++++++++++++++--------= ------ > tests/qemu-iotests/iotests.py | 38 +++++++++++++++++ > 2 files changed, 103 insertions(+), 30 deletions(-) Reviewed-by: Stefan Hajnoczi --bygAmIonOAIqBxQB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVOQCGAAoJEJykq7OBq3PI1UIH/Rx4TO69JBBpuOW+lA7QXPl8 +/njWs1kyx2lqMQZtBk9NKnAhJmfKTlkKpzFOJ/FqQ6NtlVFxbwkPmhWqRHyStwS KKzI8UrmRsl5fCUup99Rp0B/HeizM3+Z66Z95irfcz2A6L4lUykDbCOx7s9bkQRv enMf+zO27sr45bEqUm+6RSqi4r7gWqkKfU42XMM8pboXmiRDEKUjRyTokfN1itW3 xVJNYNZ4WRVdh160SwkcV4rvDPCbjdwDsX5F44PL87uZoMLomLyHowQydhDVcKLe WIW4hI7uewinp4LAUQSdUTub80i3ATyWI3z14PcDHK3IHQrx3xieBZZu1+ixSnM= =apVh -----END PGP SIGNATURE----- --bygAmIonOAIqBxQB--