[virt-tools-list] [PATCH v2 5/6] tests: add xmlparse/change vmcoreinfo test

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Thu Feb 22 11:34:21 UTC 2018


From: Marc-André Lureau <marcandre.lureau at redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 tests/xmlparse-xml/change-guest-out.xml | 1 +
 tests/xmlparse.py                       | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/xmlparse-xml/change-guest-out.xml b/tests/xmlparse-xml/change-guest-out.xml
index 6c1b29ee..016eb5ad 100644
--- a/tests/xmlparse-xml/change-guest-out.xml
+++ b/tests/xmlparse-xml/change-guest-out.xml
@@ -22,6 +22,7 @@
     </hyperv>
     <vmport state="on"/>
     <viridian/>
+    <vmcoreinfo/>
     <kvm>
       <hidden state="on"/>
     </kvm>
diff --git a/tests/xmlparse.py b/tests/xmlparse.py
index ef12eb51..feeec103 100644
--- a/tests/xmlparse.py
+++ b/tests/xmlparse.py
@@ -163,6 +163,7 @@ class XMLParseTest(unittest.TestCase):
         check("hyperv_spinlocks", True, True)
         check("hyperv_spinlocks_retries", 12287, 54321)
         check("vmport", False, True)
+        check("vmcoreinfo", False, True)
         check("kvm_hidden", None, True)
         check("pvspinlock", None, True)
         check("gic_version", None, False)
@@ -223,7 +224,8 @@ class XMLParseTest(unittest.TestCase):
         check("locked", False, True)
 
         self._alter_compare(guest.get_xml_config(), outfile,
-            support_check=conn.SUPPORT_CONN_VMPORT)
+                            support_check=[conn.SUPPORT_CONN_VMPORT,
+                                           conn.SUPPORT_CONN_VMCOREINFO])
 
     def testSeclabel(self):
         guest, outfile = self._get_test_content("change-seclabel")
-- 
2.16.1.73.g5832b7e9f2




More information about the virt-tools-list mailing list