aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2006-12-16 12:54:43 +0000
committerEwan Mellor <ewan@xensource.com>2006-12-16 12:54:43 +0000
commit92e6c93c21125e69889f916b4a5f50738da615f6 (patch)
treefce4b48e163a11da75d9585aa8da92ea3ea37f7e /tools/xm-test
parent324ad7a4a8010ae406eccb0d42581db35418c9b4 (diff)
downloadxen-92e6c93c21125e69889f916b4a5f50738da615f6.tar.gz
xen-92e6c93c21125e69889f916b4a5f50738da615f6.tar.bz2
xen-92e6c93c21125e69889f916b4a5f50738da615f6.zip
Only try to label resources if ACM is enabled.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools/xm-test')
-rw-r--r--tools/xm-test/lib/XmTestLib/acm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/xm-test/lib/XmTestLib/acm.py b/tools/xm-test/lib/XmTestLib/acm.py
index a0d8a43c09..c670bc039b 100644
--- a/tools/xm-test/lib/XmTestLib/acm.py
+++ b/tools/xm-test/lib/XmTestLib/acm.py
@@ -57,6 +57,8 @@ def ACMLabelResources(resources):
# Applications may label resources explicitly by calling this function
def ACMLabelResource(resource, label='red'):
+ if not isACMEnabled():
+ return
if acm_verbose:
print "labeling resource %s with label %s" % (resource, label)
if not ACM_LABEL_RESOURCES: