tests/qtest: switch to using event callbacks for STOP event
commitcdf5ab55872438bb3996d2b2a439c3a7b7425aa3
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 1 Jun 2023 16:13:42 +0000 (1 17:13 +0100)
committerJuan Quintela <quintela@redhat.com>
Fri, 2 Jun 2023 09:46:19 +0000 (2 11:46 +0200)
treea7e91cbbd830b7a449d12b6ca21de3a7a435ae56
parent11936f0ef6b29b1e7ba05ad888dd585210d74fd6
tests/qtest: switch to using event callbacks for STOP event

Change the migration test to use the new qtest event callback to watch
for the stop event. This ensures that we only watch for the STOP event
on the source QEMU. The previous code would set the single 'got_stop'
flag when either source or dest QEMU got the STOP event.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230601161347.1803440-6-berrange@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h
tests/qtest/migration-test.c