clitest: Do a basic xen-pv install test
This commit is contained in:
parent
9dd0900b7d
commit
29745a9f75
|
@ -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
|
||||
|
|
|
@ -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")))
|
||||
|
|
Loading…
Reference in New Issue