summaryrefslogtreecommitdiff
path: root/nova/tests/functional/libvirt/test_uefi.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/functional/libvirt/test_uefi.py')
-rw-r--r--nova/tests/functional/libvirt/test_uefi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/tests/functional/libvirt/test_uefi.py b/nova/tests/functional/libvirt/test_uefi.py
index 1eee1ab5e1..40becf425e 100644
--- a/nova/tests/functional/libvirt/test_uefi.py
+++ b/nova/tests/functional/libvirt/test_uefi.py
@@ -14,6 +14,7 @@
# under the License.
import datetime
+import re
from lxml import etree
from oslo_log import log as logging
@@ -47,6 +48,8 @@ class UEFIServersTest(base.ServersTestBase):
orig_create = nova.virt.libvirt.guest.Guest.create
def fake_create(cls, xml, host):
+ xml = re.sub('type arch.*machine',
+ 'type machine', xml)
tree = etree.fromstring(xml)
self.assertXmlEqual(
"""