-# $Id$
+# Thierry Parmentelat <thierry.parmentelat@inria.fr>
+# Copyright (C) 2010 INRIA
+#
# this models a box that hosts qemu nodes
# could probably also be used for boxes that host plc instances
import os.path
return self.test_ssh.is_local()
def run_in_buildname (self,command,background=False):
- utils.header("Running command %s on testbox %s"%(command,self.hostname()))
+ message="On %s: running %s"%(self.hostname(),command)
+ if background: message += " &"
+ utils.header(message)
return self.test_ssh.run_in_buildname (command,background)
# xxx could/should use rsync instead
def mkdir (self,dirname):
return self.test_ssh.mkdir(dirname)
- def kill_all_qemus(self):
- self.run_in_buildname("template-qemu/qemu-kill-node")
+ # we need at least one nodename, as template-qemu is not synced on remote testboxes
+ def kill_all_qemus(self,nodedir):
+ self.run_in_buildname("%s/qemu-kill-node"%nodedir)
return True
def list_all_qemus(self):