Skip to content
Snippets Groups Projects
Commit 2e768cb6 authored by Oksana Vohchana's avatar Oksana Vohchana Committed by Philippe Mathieu-Daudé
Browse files

tests/acceptance/migration: Test EXEC transport when migrating


Along with VM migration via TCP, we can use migration through
the EXEC transport protocol

Signed-off-by: default avatarOksana Vohchana <ovoshcha@redhat.com>
Reviewed-by: default avatarPhilippe 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: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
parent b2cf8d47
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,11 @@
import tempfile
from avocado_qemu import Test
from avocado import skipUnless
from avocado.utils import network
from avocado.utils import wait
from avocado.utils.path import find_command
class Migration(Test):
......@@ -60,3 +62,11 @@ 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)
@skipUnless(find_command('nc', default=False), "'nc' command not found")
def test_migration_with_exec(self):
"""
The test works for both netcat-traditional and netcat-openbsd packages
"""
free_port = self._get_free_port()
dest_uri = 'exec:nc -l localhost %u' % free_port
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment