From: Stefan Berger Subject: [PATCH] Only label a resource if ACM is enabled Date: Fri, 15 Dec 2006 21:59:00 -0500 Message-ID: <1166237940.7975.3.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-lJDxMzEjD7EUWRSQiUth" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ewan Mellor , sailer@us.ibm.com List-Id: xen-devel@lists.xenproject.org --=-lJDxMzEjD7EUWRSQiUth Content-Type: text/plain Content-Transfer-Encoding: 7bit Only try to label resources if ACM is enabled. Signed-off-by: Stefan Berger --=-lJDxMzEjD7EUWRSQiUth Content-Disposition: attachment; filename=xm-test-no-labebeling-without-acm.diff Content-Type: text/x-patch; name=xm-test-no-labebeling-without-acm.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r c6f637694b85 tools/xm-test/lib/XmTestLib/acm.py --- a/tools/xm-test/lib/XmTestLib/acm.py Fri Dec 15 11:53:45 2006 +0000 +++ b/tools/xm-test/lib/XmTestLib/acm.py Fri Dec 15 21:54:50 2006 -0500 @@ -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: --=-lJDxMzEjD7EUWRSQiUth Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-lJDxMzEjD7EUWRSQiUth--