]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/migration-tests: migration_event_wait()
authorPeter Xu <peterx@redhat.com>
Wed, 19 Jun 2024 22:30:44 +0000 (18:30 -0400)
committerFabiano Rosas <farosas@suse.de>
Fri, 21 Jun 2024 12:48:00 +0000 (09:48 -0300)
commitd444e5673c223241bd2edbc207b02cc1b2114b71
tree245b65483e278c2fafc3bb0b8bf7cf870560b92f
parentcd313b66f203381f2f2f984d5155d7942d26725d
tests/migration-tests: migration_event_wait()

Introduce a small helper to wait for a migration event, generalized from
the incoming migration path.  Make the helper easier to use by allowing it
to keep waiting until the expected event is received.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h