提交 b2cf8d47 编写于 作者: O Oksana Vohchana 提交者: Philippe Mathieu-Daudé

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: NOksana Vohchana <ovoshcha@redhat.com>
Reviewed-by: NPhilippe 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: NPhilippe Mathieu-Daudé <philmd@redhat.com>
上级 63adf16d
......@@ -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)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册