ia64/xen-unstable

view tools/xm-test/tests/create/14_create_blockroot_pos.py @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 515332c7a901
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")