X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestNode.py;h=5c2104e1dc8fa2fff0e61c86378b1e49a8ec78d6;hb=124a6036e9068ab1743a8702af219b27003ea686;hp=3f2e8b323744e21b2101adc3c79eaad511770ca3;hpb=fb1179b609f30fc7164d1987321a02c60f73eeeb;p=tests.git diff --git a/system/TestNode.py b/system/TestNode.py index 3f2e8b3..5c2104e 100644 --- a/system/TestNode.py +++ b/system/TestNode.py @@ -154,10 +154,14 @@ class TestNode: file.write('IP=%s\n'%ip) file.write('TARGET_ARCH=%s\n'%target_arch) file.close() + return True + def export_qemu (self): # if relevant, push the qemu area onto the host box if self.test_box().is_local(): return True + utils.header ("Cleaning any former sequel of %s on %s"%(self.name(),self.host_box())) + self.test_box().run_in_buildname("rm -rf %s"%self.nodedir()) utils.header ("Transferring configuration files for node %s onto %s"%(self.name(),self.host_box())) return self.test_box().copy(self.nodedir(),recursive=True)==0 @@ -181,7 +185,7 @@ class TestNode: def list_qemu (self): utils.header("Listing qemu for host %s on box %s"%(self.name(),self.test_box().hostname())) - command="qemu-%s/qemu-kill-node -l %s"%(self.name(),self.name()) + command="%s/qemu-kill-node -l %s"%(self.nodedir(),self.name()) self.test_box().run_in_buildname(command) return True @@ -190,7 +194,7 @@ class TestNode: test_box = self.test_box() # 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()) + command="%s/qemu-kill-node %s"%(self.nodedir(),self.name()) self.test_box().run_in_buildname(command) return True @@ -198,7 +202,7 @@ class TestNode: if not self.is_qemu(): return True remote_log="%s/qemu.log"%self.nodedir() - local_log="logs/%s-qemu.log"%self.name() + local_log="logs/node.qemu.%s.log"%self.name() self.test_box().test_ssh.fetch(remote_log,local_log) def clear_known_hosts (self):