ia64/xen-unstable

changeset 12297:515332c7a901

The XenDomain class does not respect the arch defaults where
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>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 01 08:38:22 2006 +0000 (2006-11-01)
parents 17f48b5907a6
children 52732dd77150
files tools/xm-test/tests/create/14_create_blockroot_pos.py
line diff
     1.1 --- a/tools/xm-test/tests/create/14_create_blockroot_pos.py	Wed Nov 01 08:34:55 2006 +0000
     1.2 +++ b/tools/xm-test/tests/create/14_create_blockroot_pos.py	Wed Nov 01 08:38:22 2006 +0000
     1.3 @@ -18,17 +18,12 @@ rdpath = getRdPath()
     1.4  #     print "Using %s" % output
     1.5  
     1.6  if ENABLE_HVM_SUPPORT:
     1.7 -    domain = XmTestDomain(name="14_create_blockroot")
     1.8 +    config = None
     1.9  else:
    1.10 -    config = {"memory" : "64",
    1.11 -              "root"   : "/dev/hda1",
    1.12 -              "name"   : "14_create_blockroot",
    1.13 -              "kernel" : getDefaultKernel(),
    1.14 +    config = {"root"   : "/dev/hda1",
    1.15                "disk"   : "file:%s/initrd.img,hda1,w" % rdpath
    1.16                }
    1.17 -    domConfig = XenConfig()
    1.18 -    domConfig.setOpts(config)
    1.19 -    domain = XenDomain(name=domConfig.getOpt("name"), config=domConfig)
    1.20 +domain = XmTestDomain(name="14_create_blockroot", extraConfig=config)
    1.21  
    1.22  try:
    1.23      console = domain.start()