debuggers.hg

view tools/xm-test/tests/destroy/03_destroy_nonexist_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: Woody Marvel <marvel@us.ibm.com>
6 import re
8 from XmTestLib import *
10 status, output = traceCommand("xm destroy -x")
11 eyecatcher = "Error:"
12 where = output.find(eyecatcher)
13 if status == 0:
14 FAIL("xm destroy returned invalid %i != 0" % status)
15 elif where == -1:
16 FAIL("xm destroy failed to report error for bad arg")