ia64/xen-unstable

view tools/xm-test/tests/create/16_create_smallmem_neg.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 import re
7 from XmTestLib import *
9 # This is under the default lower limit of 32 and we expect this test
10 # to fail. 16MBs isn't enough for the -xen kernel.
11 MEM = 16
13 domain = XmTestDomain(extraConfig={"memory": MEM,
14 "extra" :"mem=%iM" % MEM})
16 try:
17 console = domain.start()
18 console.runCmd("ls")
19 except DomainError, e:
20 if not re.search('^Error: Domain memory must be at least \d+ KB', e.extra):
21 # PPC gracefully fails like this, rather than crashing.
22 FAIL("Unable to start a domain with %i MB" % MEM)
23 except ConsoleError, e:
24 if e.reason == RUNAWAY:
25 print "Domain with %i MB has runaway console as expected" % MEM
26 else:
27 FAIL("Starting a console with %i MB passed, expected test to fail" % MEM)
29 print "Starting a domain with %i MB failed as expected" % MEM
30 domain.destroy()