testplc_method_dict = __import__("TestPlc").__dict__['TestPlc'].__dict__
all_step_infos=[]
for step in self.options.steps:
+ if step == SEP:
+ continue
force=False
# is it a forcedstep
if step.find("force_") == 0:
conf_filename="%s/qemu.conf"%(self.nodedir())
if self.test_plc.options.dry_run:
print "dry_run: skipped actual storage of qemu.conf"
- return
+ return True
utils.header('Storing qemu config for %s in %s'%(self.name(),conf_filename))
file=open(conf_filename,'w')
file.write('MACADDR=%s\n'%mac)
def kill_qemu (self):
#Prepare the log file before killing the nodes
test_box = self.test_box()
- if(not test_box.tar_logs()):
- utils.header("Failed to get the nodes log files")
# kill the right processes
utils.header("Stopping qemu for host %s on box %s"%(self.name(),self.test_box().hostname()))
command="qemu-%s/qemu-kill-node %s"%(self.name(),self.name())
# idem for the client side
c_test_sliver = self.locate_sliver_obj(spec['server_node'],spec['server_slice'])
- if not c_test_sliver.run_tcp_client(s_test_node.name(),port):
+ if not c_test_sliver.run_tcp_client(s_test_sliver.test_node.name(),port):
overall=False
return overall