fix testcase test_check_can_live_migrate_dest_fills_listen_addrs

We should set return_value=1 for compareCPU hook.
Otherwise we'll get an exception InvalidCPUInfo:
CPU doesn't have compatibility

Change-Id: Id9313eb46084e60cf0c7f5a77fe9a8a7dc86b8fb
Closes-Bug: #1634962
This commit is contained in:
Mikhail Feoktistov 2016-10-19 07:42:51 -04:00
parent 0caf296d3d
commit 758307c9e0
1 changed files with 1 additions and 0 deletions

View File

@ -6828,6 +6828,7 @@ class LibvirtConnTestCase(test.NoDBTestCase):
self.flags(vncserver_listen='192.0.2.12', group='vnc')
self.flags(server_listen='198.51.100.34', group='spice')
self.flags(proxyclient_address='203.0.113.56', group='serial_console')
mock_cpu.return_value = 1
instance_ref = objects.Instance(**self.test_instance)
instance_ref.vcpu_model = test_vcpu_model.fake_vcpumodel