eb8a447
From: Cole Robinson <crobinso@redhat.com>
eb8a447
Date: Tue, 14 Jul 2015 11:48:12 -0400
eb8a447
Subject: [PATCH virt-manager] tests: Add test for CPU clearing
eb8a447
eb8a447
Currently broken, fixed by the next patch
eb8a447
eb8a447
(cherry picked from commit 612123563eab40b546aac977c5556371de8aed70)
eb8a447
---
eb8a447
 tests/xmlparse.py | 3 ++-
eb8a447
 1 file changed, 2 insertions(+), 1 deletion(-)
eb8a447
eb8a447
diff --git a/tests/xmlparse.py b/tests/xmlparse.py
eb8a447
index d737033..f134400 100644
eb8a447
--- a/tests/xmlparse.py
eb8a447
+++ b/tests/xmlparse.py
eb8a447
@@ -1282,8 +1282,9 @@ class XMLParseTest(unittest.TestCase):
eb8a447
         basename = "clear-cpu-unknown-vals"
eb8a447
         infile = "tests/xmlparse-xml/%s-in.xml" % basename
eb8a447
         outfile = "tests/xmlparse-xml/%s-out.xml" % basename
eb8a447
-        guest = virtinst.Guest(conn, parsexml=file(infile).read())
eb8a447
+        guest = virtinst.Guest(kvmconn, parsexml=file(infile).read())
eb8a447
 
eb8a447
+        guest.cpu.copy_host_cpu()
eb8a447
         guest.cpu.clear()
eb8a447
         utils.diff_compare(guest.get_xml_config(), outfile)
eb8a447