Files
xen/tools/xm-test/tests/domname/02_domname_basic_neg.py
T
emellor@leeni.uk.xensource.com 3ec891fe7b Wholesale import of xm-test 0.4.0.
This is not yet integrated with the rest of the Xen build system.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 12:36:16 +01:00

16 lines
386 B
Python

#!/usr/bin/python
# Copyright (C) International Business Machines Corp., 2005
# Author: Dan Smith <danms@us.ibm.com>
import re
from XmTestLib import *
status, output = traceCommand("xm domname 1492")
if status == 0:
FAIL("domname(1492) returned invalid: %i != 0" % status)
elif not re.search("Error", output):
FAIL("domname(1492) failed to report error for invalid domid")