ia64/xen-unstable

view tools/xm-test/tests/create/13_create_multinic_pos.py @ 11960:fd5140c2854f

Fix Memory assumptions in the create tests.

Use the architecture specified idea of minimum memory.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Oct 24 14:52:20 2006 +0100 (2006-10-24)
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()