mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[ACM] Some more fixes
- don't reload the policy if it has been loaded - don't always load the policy in the test suite when the policy is already loaded - skip tests 07 and 09 when ACM is not enabled and xm is not using the Xen-API - fix a problem when trying to remove an invalid label Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
cb2567cc91
commit
9039ed2bed
4 files changed
+26
-3
No files matched your search
@@ -818,12 +818,13 @@ class ACMPolicy(XSPolicy):
|
||||
if successful,the policy's flags will indicate that the
|
||||
policy is the one loaded into the hypervisor
|
||||
"""
|
||||
(ret, output) = commands.getstatusoutput(
|
||||
if not self.isloaded():
|
||||
(ret, output) = commands.getstatusoutput(
|
||||
security.xensec_tool +
|
||||
" loadpolicy " +
|
||||
self.get_filename(".bin"))
|
||||
if ret != 0:
|
||||
return -xsconstants.XSERR_POLICY_LOAD_FAILED
|
||||
if ret != 0:
|
||||
return -xsconstants.XSERR_POLICY_LOAD_FAILED
|
||||
return xsconstants.XSERR_SUCCESS
|
||||
|
||||
def isloaded(self):
|
||||
|
||||