Last change
on this file since 34 was
34,
checked in by hartmans, 18 years ago
|
Add xen and xen-common
|
-
Property svn:mime-type set to
text/script
|
File size:
604 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) International Business Machines Corp., 2005 |
---|
4 | # Author: Dan Smith <danms@us.ibm.com> |
---|
5 | |
---|
6 | from XmTestLib import * |
---|
7 | |
---|
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 |
---|
13 | |
---|
14 | for i in range(0,MAX_NICS): |
---|
15 | domain = XmTestNetDomain() |
---|
16 | |
---|
17 | try: |
---|
18 | console = domain.start() |
---|
19 | except DomainError, e: |
---|
20 | FAIL("(%i nics) " % i + str(e)) |
---|
21 | |
---|
22 | try: |
---|
23 | console.runCmd("ls") |
---|
24 | except ConsoleError, e: |
---|
25 | FAIL("(%i nics) Console didn't respond: probably crashed!" % i) |
---|
26 | |
---|
27 | domain.destroy() |
---|
Note: See
TracBrowser
for help on using the repository browser.