aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOksana Vohchana <ovoshcha@redhat.com>2020-02-03 13:16:31 +0200
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2020-02-07 15:12:48 +0100
commitb2cf8d470476348b21e8e51fc8d53c3435da244a (patch)
tree28d102124388c00e947787a13ac3539eb8102b47 /tests
parent63adf16d4fc422405dd116829368c2480cbc67b5 (diff)
downloadqemu-b2cf8d470476348b21e8e51fc8d53c3435da244a.zip
qemu-b2cf8d470476348b21e8e51fc8d53c3435da244a.tar.gz
qemu-b2cf8d470476348b21e8e51fc8d53c3435da244a.tar.bz2
tests/acceptance/migration: Test UNIX transport when migrating
Along with VM migration via TCP, we can use migration through the UNIX transport protocol Signed-off-by: Oksana Vohchana <ovoshcha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200203111631.18796-3-ovoshcha@redhat.com> [PMD: Split patch in 2, reworded subject and description] Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/migration.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index 03686d7..9eebc36 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -10,6 +10,7 @@
# later. See the COPYING file in the top-level directory.
+import tempfile
from avocado_qemu import Test
from avocado.utils import network
@@ -54,3 +55,8 @@ class Migration(Test):
def test_migration_with_tcp_localhost(self):
dest_uri = 'tcp:localhost:%u' % self._get_free_port()
self.do_migrate(dest_uri)
+
+ def test_migration_with_unix(self):
+ with tempfile.TemporaryDirectory(prefix='socket_') as socket_path:
+ dest_uri = 'unix:%s/qemu-test.sock' % socket_path
+ self.do_migrate(dest_uri)