diff options
-rw-r--r-- | tests/acceptance/migration.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 9eebc36..41b13b9 100644 --- a/tests/acceptance/migration.py +++ b/tests/acceptance/migration.py @@ -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 @@ class Migration(Test): 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 |