ia64/xen-unstable

view tools/xm-test/tests/create/13_create_multinic_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 51908f382f92
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 # The device model, qemu-dm, only supports 8 MAX_NICS currently.
9 if ENABLE_HVM_SUPPORT:
10 MAX_NICS = 8
11 else:
12 MAX_NICS = 10
14 for i in range(0,MAX_NICS):
15 domain = XmTestNetDomain()
17 try:
18 console = domain.start()
19 except DomainError, e:
20 FAIL("(%i nics) " % i + str(e))
22 try:
23 console.runCmd("ls")
24 except ConsoleError, e:
25 FAIL("(%i nics) Console didn't respond: probably crashed!" % i)
27 domain.destroy()