From: Amador Pahim <apahim@redhat.com>
- Using acell=KVM when we have a guest.
- Better resilience for the cases where live-migration fails.
Signed-off-by: Amador Pahim <apahim@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
tests/avocado/test_nec-usb-xhci.py | 6 +++++-
tests/avocado/test_numa_hotplug.py | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/avocado/test_nec-usb-xhci.py b/tests/avocado/test_nec-usb-xhci.py
index 1c4822544e..d3a2716eb4 100644
--- a/tests/avocado/test_nec-usb-xhci.py
+++ b/tests/avocado/test_nec-usb-xhci.py
@@ -18,8 +18,10 @@ class TestNecUsbXhci(test.QemuTest):
"""
def setUp(self):
+ self.vm_dst = None
self.image = vmimage.get()
self.vm.add_image(self.image.path, cloudinit=True, snapshot=False)
+ self.vm.args.extend(['-machine', 'accel=kvm'])
usbdevice = os.path.join(self.workdir, 'usb.img')
process.run('dd if=/dev/zero of=%s bs=1M count=10' % usbdevice)
@@ -56,4 +58,6 @@ class TestNecUsbXhci(test.QemuTest):
def tearDown(self):
self.vm.shutdown()
- self.vm_dst.shutdown()
+ if self.vm_dst is not None:
+ self.vm_dst.shutdown()
+ os.remove(self.image.path)
diff --git a/tests/avocado/test_numa_hotplug.py b/tests/avocado/test_numa_hotplug.py
index ee43e60089..1993f9b159 100644
--- a/tests/avocado/test_numa_hotplug.py
+++ b/tests/avocado/test_numa_hotplug.py
@@ -24,6 +24,7 @@ class TestNumaHotplug(test.QemuTest):
self.image = vmimage.get()
self.vm.add_image(self.image.path, cloudinit=True, snapshot=False)
+ self.vm.args.extend(['-machine', 'accel=kvm'])
self.vm.args.extend(["-m", "4G,slots=208,maxmem=80G"])
self.vm.args.extend(["-numa", "node"] * 16)
self.vm.launch()
--
2.14.3