debuggers.hg

view tools/xm-test/tests/create/13_create_multinic_pos.py @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
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()