iotests: Make 234 stable
commit9a378495c3cde80aba9299ceab55338d7e78691d
authorMax Reitz <mreitz@redhat.com>
Fri, 21 Dec 2018 18:42:26 +0000 (21 19:42 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:46:44 +0000 (1 13:46 +0100)
treeec5a81efb08554d033ae1a5a0f15238edfa450f8
parent4720cbeea1f42fd905fc69338fd42b191e58b412
iotests: Make 234 stable

This test waits for a MIGRATION event with status=completed on the
source VM before querying the migration status on both source and
destination.  However, just because the source says migration has
completed does not mean the destination thinks the same.  Therefore, in
some cases, the destination VM may still report "active" instead of
"completed" when asked for its migration status.

Fix this by enabling migration events on both VMs and waiting until both
source and destination emit a status=completed MIGRATION event.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/234
tests/qemu-iotests/234.out