import subprocess
from optparse import OptionParser
-class BuildBoxes:
+class Infrastructure:
# everything in the onelab.eu domain
domain = 'pl.sophia.inria.fr'
def refresh_cache (self):
retrieved= \
self.backquote_ssh(self.fqdn(self.testmaster),['LocalTestResources.py'],trash_err=True)
- remove="."+BuildBoxes.domain
+ remove="."+Infrastructure.domain
retrieved = [ x.replace(remove,"").strip() for x in retrieved.split()]
self.qemu_boxes = retrieved
cache=self.cache_file()
@staticmethod
def ssh(box):
- return BuildBoxes.ssh_command + [ BuildBoxes.root(box) ]
+ return Infrastructure.ssh_command + [ Infrastructure.root(box) ]
def header (self,message):
print "===============",message
if not tracker: continue
try:
tracker=tracker.strip()
- [hostname,buildname]=tracker.split('@')
- [left,plcname]=buildname.rsplit('-',1)
+ (hostname,buildname,plcname)=tracker.split('@')
print self.margin_outline(plcname),tracker
except:
print self.margin(""),tracker
for box in self.boxes: self.handle_box (box,"testmaster")
if __name__ == "__main__":
- BuildBoxes().main()
+ Infrastructure().main()