aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/lib
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-01-11 18:56:59 +0000
committerEwan Mellor <ewan@xensource.com>2007-01-11 18:56:59 +0000
commitaeb7c09a6613aae8e39c271283f8db9f7a99d32f (patch)
treef20aaafcbd4be33d28a8b78bb3a0b95f7a1836f1 /tools/xm-test/lib
parent2b1f4094a6bb571855c2a1ca54f5e6ded34913c5 (diff)
downloadxen-aeb7c09a6613aae8e39c271283f8db9f7a99d32f.tar.gz
xen-aeb7c09a6613aae8e39c271283f8db9f7a99d32f.tar.bz2
xen-aeb7c09a6613aae8e39c271283f8db9f7a99d32f.zip
I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains. This patch also fixes a problem related to calling 'xm domid' on a currently suspended domain if that domain is a managed domain. In that case a 'None' is returned by Xend, which I default to '-1'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools/xm-test/lib')
-rw-r--r--tools/xm-test/lib/XmTestLib/Xm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/xm-test/lib/XmTestLib/Xm.py b/tools/xm-test/lib/XmTestLib/Xm.py
index 43ee90dd7c..6f1e33c153 100644
--- a/tools/xm-test/lib/XmTestLib/Xm.py
+++ b/tools/xm-test/lib/XmTestLib/Xm.py
@@ -49,6 +49,8 @@ def domid(name):
if status != 0 or "Traceback" in output:
return -1
+ if output == "None":
+ return -1
try:
return int(output)
except: