WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [ACM] An environment where ACM and its to

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [ACM] An environment where ACM and its tools have not been installed before
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Oct 2006 16:40:22 +0000
Delivery-date: Thu, 19 Oct 2006 09:42:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID d27d1f8ca25c8977fbb13d84fb31b9442dbd2030
# Parent  d088aec406c04282eed35a0b31e3fede0132f883
[ACM] An environment where ACM and its tools have not been installed before
will throw an error during 'make' of the test suite. This fixes the problem.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/xm-test/tests/security-acm/01_security-acm_basic.py |    3 +++
 tools/xm-test/tests/security-acm/Makefile.am              |    5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff -r d088aec406c0 -r d27d1f8ca25c 
tools/xm-test/tests/security-acm/01_security-acm_basic.py
--- a/tools/xm-test/tests/security-acm/01_security-acm_basic.py Thu Oct 19 
15:14:25 2006 +0100
+++ b/tools/xm-test/tests/security-acm/01_security-acm_basic.py Thu Oct 19 
15:15:36 2006 +0100
@@ -23,6 +23,9 @@ testlabel = "blue"
 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 d088aec406c0 -r d27d1f8ca25c 
tools/xm-test/tests/security-acm/Makefile.am
--- a/tools/xm-test/tests/security-acm/Makefile.am      Thu Oct 19 15:14:25 
2006 +0100
+++ b/tools/xm-test/tests/security-acm/Makefile.am      Thu Oct 19 15:15:36 
2006 +0100
@@ -15,7 +15,10 @@ TESTS_ENVIRONMENT=@TENV@
 %.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
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [ACM] An environment where ACM and its tools have not been installed before, Xen patchbot-unstable <=