From: Stefan Berger Subject: [PATCH] [XM-Test] Fix for 'make' of xm-test on a system that has not installed ACM before Date: Wed, 18 Oct 2006 15:18:04 -0400 Message-ID: <1161199084.22407.5.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-qrzXAbyKV29aIjRW/SUI" 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 --=-qrzXAbyKV29aIjRW/SUI Content-Type: text/plain Content-Transfer-Encoding: 7bit An environment where ACM and its tools have not been installed before will throw an error during 'make' of the test suite. This fixes this problem. Sorry for that. Signed-off-by: Stefan Berger --=-qrzXAbyKV29aIjRW/SUI Content-Disposition: attachment; filename=xm_test-acm_clean_system.diff Content-Type: text/x-patch; name=xm_test-acm_clean_system.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 05bf8693c735 tools/xm-test/tests/security-acm/01_security-acm_basic.py --- a/tools/xm-test/tests/security-acm/01_security-acm_basic.py Wed Oct 18 15:08:58 2006 +++ b/tools/xm-test/tests/security-acm/01_security-acm_basic.py Wed Oct 18 15:06:32 2006 @@ -23,6 +23,9 @@ testlabel = "blue" vmconfigfile = "/tmp/xm-test.conf" testresource = "phy:ram0" + +if not isACMEnabled(): + SKIP("Not running this test since ACM not enabled.") status, output = traceCommand("xm makepolicy %s" % (testpolicy)) if status != 0 or output != "": diff -r 05bf8693c735 tools/xm-test/tests/security-acm/Makefile.am --- a/tools/xm-test/tests/security-acm/Makefile.am Wed Oct 18 15:08:58 2006 +++ b/tools/xm-test/tests/security-acm/Makefile.am Wed Oct 18 15:06:32 2006 @@ -15,7 +15,10 @@ %.test: %.py cp $< $@ chmod +x $@ - @cp -f xm-test-security_policy.xml /etc/xen/acm-security/policies + @if [ -d /etc/xen/acm-security/policies ]; then \ + cp -f xm-test-security_policy.xml \ + /etc/xen/acm-security/policies; \ + fi; clean-local: am_config_clean-local --=-qrzXAbyKV29aIjRW/SUI 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 --=-qrzXAbyKV29aIjRW/SUI--