aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-01-29 22:23:43 +0100
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2020-02-07 15:12:48 +0100
commit5427ecd4aba2858e3ba2a433ccf1c81d66d0218f (patch)
treea4ef1ec658761f1cf2e468adc51241e3bda5130f /tests
parenta09186494321f7307b14ac1d80aea515ea88bbe3 (diff)
tests/acceptance/migration: Default to -nodefaults
We don't need the default options to run this test. This fixes errors when running a binary built with --without-default-devices such: ERROR: qemu-system-arm: Unsupported NIC model: virtio-net-pci Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Message-Id: <20200129212345.20547-28-philmd@redhat.com> [PMD: Rebased] Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/migration.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index b342cabe07..a8367ca023 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -41,11 +41,13 @@ class Migration(Test):
self.assertEqual(src_vm.command('query-status')['status'],'postmigrate')
def do_migrate(self, dest_uri, src_uri=None):
- source_vm = self.get_vm()
dest_vm = self.get_vm('-incoming', dest_uri)
+ dest_vm.add_args('-nodefaults')
dest_vm.launch()
if src_uri is None:
src_uri = dest_uri
+ source_vm = self.get_vm()
+ source_vm.add_args('-nodefaults')
source_vm.launch()
source_vm.qmp('migrate', uri=src_uri)
self.assert_migration(source_vm, dest_vm)