debuggers.hg

view tools/xm-test/tests/reboot/03_reboot_badname_neg.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: Li Ge <lge@us.ibm.com>
6 import time
7 import re
9 from XmTestLib import *
11 status, output = traceCommand("xm reboot NOT-EXIST" )
13 eyecatcher = "Error"
14 where = output.find(eyecatcher)
15 if status == 0:
16 FAIL("xm reboot returned invalid %i == 0" % status )
17 elif where == -1:
18 FAIL("xm reboot failed to report error for non-existent domain" )