ia64/xen-unstable

view tools/xm-test/tests/create/10_create_fastdestroy.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 bef7f5fcf207
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 import re
10 #
11 # Check to see if the output resembles the
12 # "No such process error"
13 #
14 def check_for_NSP_error(output):
15 if re.search("XendError.*No such process", output):
16 return "Bugzilla bug #234"
17 else:
18 return None
20 def check_for_DUP_error(output):
21 if re.search("Error.*already exists\!", output):
22 return "Xend reported duplicate domain (stale state?)"
23 else:
24 return None
26 i = 0
28 for i in range(0,50):
29 domain = XmTestDomain("testdomain")
30 try:
31 domain.start(noConsole=True)
32 except DomainError,e:
33 print "Failed: " + e.extra
34 NSPerror = check_for_NSP_error(e.extra)
35 DUPerror = check_for_DUP_error(e.extra)
36 if NSPerror:
37 FAIL(NSPerror)
38 elif DUPerror:
39 FAIL(DUPerror)
40 else:
41 FAIL("xm create returned invalid status: %i" % e.errorcode)
42 domain.destroy()