return self.test_ssh.mkdir(direname)
def kill_all_qemus(self):
- self.run_in_buildname("killall qemu")
+ self.run_in_buildname("template-qemu/kill-qemu-node")
+ return True
+
+ def list_all_qemus(self):
+ self.run_in_buildname("template-qemu/kill-qemu-node -l")
return True
def list_all_qemus(self,options):
for (box,nodes) in self.gather_hostBoxes().iteritems():
# this is the brute force version, kill all qemus on that host box
- TestBox(box,options.buildname).run_in_buildname("qemu-%s/kill-qemu-node -l %s"%(node.name(),node.name()))
+ TestBox(box,options.buildname).list_all_qemus()
return True
# kill only the right qemus
function show_pids () {
pids=$(list_pids "$@")
if [ -n "$pids" ] ; then
- ps $pids
+ ps $pids | grep -v $COMMAND || echo Nothing to show
else
echo Nothing to show
fi
#Command for running the Qemu Emulator
ARGS="-boot d -cdrom ${NODE_ISO} -hda ${HDA} -m ${RAM} -net nic,macaddr=${MACADDR} -net $TAP -nographic -pidfile qemu.pid"
echo $$ > shell.pid
-echo "Running qemu $ARGS"
-$QEMU $ARGS
-
-
-exit
+echo "Running $QEMU $ARGS < /dev/null"
+exec $QEMU $ARGS < /dev/null