tests/migration-tests: Cover postcopy failure on reconnect
authorPeter Xu <peterx@redhat.com>
Wed, 19 Jun 2024 22:30:46 +0000 (18:30 -0400)
committerFabiano Rosas <farosas@suse.de>
Fri, 21 Jun 2024 17:37:58 +0000 (14:37 -0300)
commit6cf56a87baf8b99c4296a943d220eb8276ca035a
tree7ff276a1fb308504d1dc92a61d165fe0393a688e
parent8dbd24d3aa6d67b2d3576da016fb631fd1edfc2c
tests/migration-tests: Cover postcopy failure on reconnect

Make sure there will be an event for postcopy recovery, irrelevant of
whether the reconnect will success, or when the failure happens.

The added new case is to fail early in postcopy recovery, in which case it
didn't even reach RECOVER stage on src (and in real life it'll be the same
to dest, but the test case is just slightly more involved due to the dual
socketpair setup).

To do that, rename the postcopy_recovery_test_fail to reflect either stage
to fail, instead of a boolean.

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