From: Max Reitz <mreitz@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 4/4] iotests: Add test for QMP event rates
Date: Wed, 9 Mar 2016 18:36:22 +0100 [thread overview]
Message-ID: <56E05F16.2000306@redhat.com> (raw)
In-Reply-To: <4dd987be27d42483f90820e5fd1360c9d7d26af2.1457539274.git.berto@igalia.com>
[-- Attachment #1.1: Type: text/plain, Size: 1601 bytes --]
On 09.03.2016 17:11, Alberto Garcia wrote:
> This test verifies that the rate-limited QMP events are emitted at a
> maximum rate of 1 per second as defined in monitor_qapi_event_conf in
> monitor.c
>
> It also checks that QUORUM_REPORT_BAD events generated from different
> nodes are kept in separate queues so they don't mask each other.
>
> Signed-off-by: Alberto Garcia <berto@igalia.com>
> ---
> tests/qemu-iotests/146 | 129 +++++++++++++++++++++++++++++++++++++++++++++
> tests/qemu-iotests/146.out | 5 ++
> tests/qemu-iotests/group | 1 +
> 3 files changed, 135 insertions(+)
> create mode 100644 tests/qemu-iotests/146
> create mode 100644 tests/qemu-iotests/146.out
>
> diff --git a/tests/qemu-iotests/146 b/tests/qemu-iotests/146
> new file mode 100644
> index 0000000..30bc379
> --- /dev/null
> +++ b/tests/qemu-iotests/146
[...]
> + # I/O errors in different children: all events are emitted
> + delay = 2 * event_rate
> + for i in range(len(imgs)):
> + self.vm.hmp_qemu_io("drive0", "aio_read %d %d" %
> + ((offset + i) * sector_size, sector_size))
> + self.vm.qtest("clock_step %d" % delay)
> + self.do_check_event('img%d' % i, offset + i)
> +
A self.vm.qtest("clock_step %d" % (2 * event_rate)) may be useful here,
but it's not necessary.
Reviewed-by: Max Reitz <mreitz@redhat.com>
> + # No more pending events
> + self.do_check_event(None)
> +
> +if __name__ == '__main__':
> + iotests.main(supported_fmts=["raw"])
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2016-03-09 17:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-09 16:11 [Qemu-devel] [PATCH 0/4] Separate QUORUM_REPORT_BAD events according to their node name Alberto Garcia
2016-03-09 16:11 ` [Qemu-devel] [PATCH 1/4] quorum: Fix crash in quorum_aio_cb() Alberto Garcia
2016-03-09 16:54 ` [Qemu-devel] [Qemu-block] " Max Reitz
2016-03-10 10:10 ` Alberto Garcia
2016-03-11 12:35 ` Max Reitz
2016-03-09 16:11 ` [Qemu-devel] [PATCH 2/4] monitor: Separate QUORUM_REPORT_BAD events according to the node name Alberto Garcia
2016-03-09 17:03 ` [Qemu-devel] [Qemu-block] " Max Reitz
2016-03-09 16:11 ` [Qemu-devel] [PATCH 3/4] monitor: Use QEMU_CLOCK_VIRTUAL for the event queue in qtest mode Alberto Garcia
2016-03-09 17:06 ` [Qemu-devel] [Qemu-block] " Max Reitz
2016-03-09 16:11 ` [Qemu-devel] [PATCH 4/4] iotests: Add test for QMP event rates Alberto Garcia
2016-03-09 17:36 ` Max Reitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56E05F16.2000306@redhat.com \
--to=mreitz@redhat.com \
--cc=berto@igalia.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.