ia64/xen-unstable

changeset 13077:f944e13ce50a

Only try to label resources if ACM is enabled.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Dec 16 12:54:43 2006 +0000 (2006-12-16)
parents fb6db3c9ae74
children ab232025ae29
files tools/xm-test/lib/XmTestLib/acm.py
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/acm.py	Sat Dec 16 12:52:18 2006 +0000
     1.2 +++ b/tools/xm-test/lib/XmTestLib/acm.py	Sat Dec 16 12:54:43 2006 +0000
     1.3 @@ -57,6 +57,8 @@ def ACMLabelResources(resources):
     1.4  
     1.5  # Applications may label resources explicitly by calling this function
     1.6  def ACMLabelResource(resource, label='red'):
     1.7 +    if not isACMEnabled():
     1.8 +        return
     1.9      if acm_verbose:
    1.10          print "labeling resource %s with label %s" % (resource, label)
    1.11      if not ACM_LABEL_RESOURCES: