Fix for 'make' of xm-test on a system that has not installed ACM before
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.
Signed-off-by Stefan Berger <[email protected]>
tools/xm-test/tests/security-acm/01_security-acm_basic.py +3 -0
@@ -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
@@ -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