]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest: failover: fix infinite loop
authorLaurent Vivier <lvivier@redhat.com>
Tue, 29 Mar 2022 12:42:59 +0000 (14:42 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Mar 2022 15:40:05 +0000 (16:40 +0100)
commit6ae6a30ca579be81d5a4a0e2cbfe714d375e0560
tree03c72cfe81a997415c3505f8ce9451d9161dbfdd
parent44064550d98a680e2ff55fdd783ac19d850ac8ca
tests/qtest: failover: fix infinite loop

If the migration is over before we cancel it, we are
waiting in a loop a state that never comes because the state
is already "completed".

To avoid an infinite loop, skip the test if the migration
is "completed" before we were able to cancel it.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-id: 20220329124259.355995-1-lvivier@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/virtio-net-failover.c