from TestSsh import TestSsh
# xxx this should probably inherit TestSsh
-class TestBox:
+class TestBoxQemu:
def __init__(self,hostname,buildname,key=None):
self.hostname_value=hostname
import utils
from TestUser import TestUser
-from TestBox import TestBox
+from TestBoxQemu import TestBoxQemu
from TestSsh import TestSsh
class TestNode:
utils.header("WARNING : qemu nodes need a host box")
return 'localhost'
- # this returns a TestBox instance - cached in .test_box_value
+ # this returns a TestBoxQemu instance - cached in .test_box_value
def test_box (self):
try:
return self.test_box_value
except:
- self.test_box_value = TestBox (self.host_box(),self.buildname())
+ self.test_box_value = TestBoxQemu (self.host_box(),self.buildname())
return self.test_box_value
def create_node (self):
from TestKey import TestKey
from TestSlice import TestSlice
from TestSliver import TestSliver
-from TestBox import TestBox
+from TestBoxQemu import TestBoxQemu
from TestSsh import TestSsh
from TestApiserver import TestApiserver
from TestSliceSfa import TestSliceSfa
for (box,nodes) in self.gather_hostBoxes().iteritems():
# pass the first nodename, as we don't push template-qemu on testboxes
nodedir=nodes[0].nodedir()
- TestBox(box,self.options.buildname).qemu_kill_all(nodedir)
+ TestBoxQemu(box,self.options.buildname).qemu_kill_all(nodedir)
return True
# make this a valid step
'list all qemu instances on the qemu boxes involved by this setup'
for (box,nodes) in self.gather_hostBoxes().iteritems():
# this is the brute force version, kill all qemus on that host box
- TestBox(box,self.options.buildname).qemu_list_all()
+ TestBoxQemu(box,self.options.buildname).qemu_list_all()
return True
# kill only the right qemus
class TestResources:
- # need more specialization, see an example in OnelabTestResources
+ # need more specialization, see an example in LocalTestResources.sample.inria
##########
def localize (self,plcs,options):