Skip to contentSkip to conversation

Fix for 'make' of xm-test on a system that has not installed ACM before

PATCH New Stefan Berger 1 participant 1 message Oct 18, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix for 'make' of xm-test on a system that has not installed ACM before

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.

tools/xm-test/tests/security-acm/01_security-acm_basic.py +3 -0
diff -r 05bf8693c735 tools/xm-test/tests/security-acm/01_security-acm_basic.py
@@ -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 != "":
tools/xm-test/tests/security-acm/Makefile.am +4 -1
diff -r 05bf8693c735 tools/xm-test/tests/security-acm/Makefile.am
@@ -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
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel