direct-io.hg

view tools/xm-test/tests/create/14_create_blockroot_pos.py @ 12283: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 bef7f5fcf207
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Authors: Dan Smith <danms@us.ibm.com>
6 from XmTestLib import *
8 import os
9 import time
11 rdpath = getRdPath()
13 # status, output = traceCommand("losetup -f %s" % rdpath)
14 # if status != 0:
15 # FAIL("Unable to get a free loop device")
16 #
17 # if verbose:
18 # print "Using %s" % output
20 if ENABLE_HVM_SUPPORT:
21 config = None
22 else:
23 config = {"root" : "/dev/hda1",
24 "disk" : "file:%s/initrd.img,hda1,w" % rdpath
25 }
26 domain = XmTestDomain(name="14_create_blockroot", extraConfig=config)
28 try:
29 console = domain.start()
30 except DomainError, e:
31 FAIL(str(e))
33 #waitForBoot()
35 try:
36 # console.debugMe = True
37 run = console.runCmd("ls")
39 except ConsoleError, e:
40 saveLog(console.getHistory())
41 FAIL(str(e))
43 if run["return"] != 0:
44 FAIL("DomU 'ls' failed")