tests/migration: fix unix socket migration
commit927fae0eb9af2bcde2cd2030d478d365f2edf7e9
authorHyman <huangy81@chinatelecom.cn>
Tue, 9 Mar 2021 16:00:59 +0000 (10 00:00 +0800)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 14 Jul 2021 13:15:52 +0000 (14 14:15 +0100)
tree633a7dedf3fe4b0bb7a946e32ddeee4b1f4afd93
parent2ce949a4c187b2a6aa68ab03216ee271b408fa63
tests/migration: fix unix socket migration

The test aborts and error message as the following be throwed:
"No such file or directory: '/var/tmp/qemu-migrate-{pid}.migrate",
when the unix socket migration test nearly done. The reason is
qemu removes the unix socket file after migration before
guestperf.py script do it. So pre-check if the socket file exists
when removing it to prevent the guestperf program from aborting.

See also commit f9cc00346d3 ("tests/migration: fix unix socket batch
migration").

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Signed-off-by: Hyman <huangy81@chinatelecom.cn>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/migration/guestperf/engine.py