|
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:
751 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/python |
|---|
| 2 | |
|---|
| 3 | # Copyright (C) International Business Machines Corp., 2005 |
|---|
| 4 | # Author: Murillo F. Bernardes <mfb@br.ibm.com> |
|---|
| 5 | |
|---|
| 6 | import time |
|---|
| 7 | import re |
|---|
| 8 | |
|---|
| 9 | from XmTestLib import * |
|---|
| 10 | |
|---|
| 11 | domain = XmTestDomain() |
|---|
| 12 | |
|---|
| 13 | try: |
|---|
| 14 | domain.start(noConsole=True) |
|---|
| 15 | except DomainError, e: |
|---|
| 16 | if verbose: |
|---|
| 17 | print "Failed to create test domain because:" |
|---|
| 18 | print e.extra |
|---|
| 19 | FAIL(str(e)) |
|---|
| 20 | |
|---|
| 21 | status, output = traceCommand("xm pause -x %s" % domain.getName()) |
|---|
| 22 | |
|---|
| 23 | eyecatcher = "Error" |
|---|
| 24 | where = output.find(eyecatcher) |
|---|
| 25 | if status == 0: |
|---|
| 26 | domain.destroy() |
|---|
| 27 | FAIL("xm pause returned bad status, expected non 0, status is: %i" % status ) |
|---|
| 28 | elif where == -1: |
|---|
| 29 | domain.destroy() |
|---|
| 30 | FAIL("xm pause returned bad output, expected Error, output is: %s" % output ) |
|---|
| 31 | |
|---|
| 32 | domain.destroy() |
|---|
Note: See
TracBrowser
for help on using the repository browser.