The XenDomain class does not respect the arch defaults where
authorEwan Mellor <ewan@xensource.com>
Wed, 1 Nov 2006 08:38:22 +0000 (08:38 +0000)
committerEwan Mellor <ewan@xensource.com>
Wed, 1 Nov 2006 08:38:22 +0000 (08:38 +0000)
as XmTestDomain does.  This part of the patch forces both HVM and
non-HVM tests to use XmTestDomain.  With appropriate changes to the
extraConfig arg.

On PPC we need to use the arch defaults to get the console setup
correctly.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
tools/xm-test/tests/create/14_create_blockroot_pos.py

index 58eeb2b9b399e0370f7563489628399953d88d55..79dd622b5a2d7a8b0724b5d562199a84ec295638 100644 (file)
@@ -18,17 +18,12 @@ rdpath = getRdPath()
 #     print "Using %s" % output
 
 if ENABLE_HVM_SUPPORT:
-    domain = XmTestDomain(name="14_create_blockroot")
+    config = None
 else:
-    config = {"memory" : "64",
-              "root"   : "/dev/hda1",
-              "name"   : "14_create_blockroot",
-              "kernel" : getDefaultKernel(),
+    config = {"root"   : "/dev/hda1",
               "disk"   : "file:%s/initrd.img,hda1,w" % rdpath
               }
-    domConfig = XenConfig()
-    domConfig.setOpts(config)
-    domain = XenDomain(name=domConfig.getOpt("name"), config=domConfig)
+domain = XmTestDomain(name="14_create_blockroot", extraConfig=config)
 
 try:
     console = domain.start()