ia64/xen-unstable

view tools/xm-test/tests/create/15_create_smallmem_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 fd5140c2854f
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Dan Smith <danms@us.ibm.com>
6 from XmTestLib import *
8 # Create a domain with the minimum memory allocation
9 MEM = minSafeMem()
11 domain = XmTestDomain(extraConfig={"memory": MEM,
12 "extra" :"mem=%iM" % MEM})
14 try:
15 console = domain.start()
16 except DomainError, e:
17 FAIL("Unable to start a domain with %i MB" % MEM)
19 try:
20 console.runCmd("ls")
21 except ConsoleError, e:
22 if e.reason == RUNAWAY:
23 FAIL("Bug #380: Starting a console with %i MB crashed the console daemon" % MEM)
24 else:
25 FAIL("Starting a console with %i MB failed: domain dies immediately!" % MEM)
27 domain.destroy()