clitest: Do a basic xen-pv install test

This commit is contained in:
Cole Robinson 2015-09-22 11:26:13 -04:00
parent 9dd0900b7d
commit 29745a9f75
2 changed files with 2 additions and 0 deletions

View File

@ -737,6 +737,7 @@ c.add_compare("--init /usr/bin/httpd", "manual-init")
######################
c = vinst.add_category("xen", "--connect %(URI-XEN)s --noautoconsole")
c.add_valid("--disk %(EXISTIMG1)s --location %(TREEDIR)s --paravirt --graphics none") # Xen PV install headless
c.add_compare("--disk %(EXISTIMG1)s --import", "xen-default") # Xen default
c.add_compare("--disk %(EXISTIMG1)s --location %(TREEDIR)s --paravirt", "xen-pv") # Xen PV
c.add_compare("--disk %(EXISTIMG1)s --cdrom %(EXISTIMG1)s --livecd --hvm", "xen-hvm") # Xen HVM

View File

@ -31,6 +31,7 @@ def _sanitize_xml(xml):
xml = re.sub("domain type=\".*\"", "domain type=\"test\"", xml)
xml = re.sub("machine type=\".*\"", "", xml)
xml = re.sub(">exe<", ">hvm<", xml)
xml = re.sub(">linux<", ">xen<", xml)
diff = "\n".join(difflib.unified_diff(orig.split("\n"),
xml.split("\n")))