git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
needed for creating leases in python3
[tests.git]
/
system
/
TestPlc.py
diff --git
a/system/TestPlc.py
b/system/TestPlc.py
index
c378af6
..
f55ee12
100644
(file)
--- 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
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())
# 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)
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()
start += grain
# find out all nodes that are reservable
nodes = self.all_reservable_nodenames()