X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestPlc.py;h=f55ee1250bc7ba316eab3af09613a83d31c85e0d;hb=5148b9f217612f5044034a3f2efd7a69a9a25529;hp=c378af6d7885eb41ef006a5ab0689f0473266c39;hpb=e167868104b248223446c04fc83be5b090bbf188;p=tests.git diff --git a/system/TestPlc.py b/system/TestPlc.py index c378af6..f55ee12 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -308,7 +308,7 @@ class TestPlc: def host_to_guest(self, command): vservername = self.vservername personality = self.options.personality - raw = "{personality} virsh -c lxc:/// lxc-enter-namespace {vservername}".format(**locals()) + raw = "{personality} virsh -c lxc:/// lxc-enter-namespace --noseclabel {vservername}".format(**locals()) # f14 still needs some extra help if self.options.fcdistro == 'f14': raw +=" -- /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin {command}".format(**locals()) @@ -910,7 +910,7 @@ class TestPlc: now = int(time.time()) grain = self.apiserver.GetLeaseGranularity(self.auth_root()) print('API answered grain=', grain) - start = (now/grain)*grain + start = (now//grain)*grain start += grain # find out all nodes that are reservable nodes = self.all_reservable_nodenames()