From: Stefan Berger Subject: [PATCH] [XM-TEST] Small fixes Date: Tue, 24 Oct 2006 09:36:32 -0400 Message-ID: <1161696993.13150.4.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-SOpUe2QyZ5QChIUw+ZoU" 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 List-Id: xen-devel@lists.xenproject.org --=-SOpUe2QyZ5QChIUw+ZoU Content-Type: text/plain Content-Transfer-Encoding: 7bit This puts two small fixes in the xm-test suite: - it turns off verbose mode of the ACM module - copies the test policy to the policies directory only if the directory has been created Signed-off-by: Stefan Berger --=-SOpUe2QyZ5QChIUw+ZoU Content-Disposition: attachment; filename=xm_test-acm_fix.diff Content-Type: text/x-patch; name=xm_test-acm_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r f5321161c649 tools/xm-test/lib/XmTestLib/acm.py --- a/tools/xm-test/lib/XmTestLib/acm.py Thu Oct 19 14:53:12 2006 +++ b/tools/xm-test/lib/XmTestLib/acm.py Thu Oct 19 17:04:16 2006 @@ -26,7 +26,7 @@ ACM_LABEL_RESOURCES = False labeled_resources = {} -acm_verbose = True +acm_verbose = False def isACMEnabled(): return security.on() diff -r f5321161c649 tools/xm-test/runtest.sh --- a/tools/xm-test/runtest.sh Thu Oct 19 14:53:12 2006 +++ b/tools/xm-test/runtest.sh Thu Oct 19 17:04:16 2006 @@ -197,7 +197,10 @@ unsafe=no GROUPENTERED=default -cp -f tests/security-acm/xm-test-security_policy.xml /etc/xen/acm-security/policies +if [ -d /etc/xen/acm-security/policies ]; then + cp -f tests/security-acm/xm-test-security_policy.xml \ + /etc/xen/acm-security/policies +fi # Resolve options while [ $# -gt 0 ] --=-SOpUe2QyZ5QChIUw+ZoU 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 --=-SOpUe2QyZ5QChIUw+ZoU--