improvements
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 28 Mar 2008 16:01:56 +0000 (16:01 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 28 Mar 2008 16:01:56 +0000 (16:01 +0000)
system/TestBox.py
system/TestPlc.py
system/template-qemu/kill-qemu-node
system/template-qemu/start-qemu-node

index 6fc0dba..35de00c 100644 (file)
@@ -41,6 +41,10 @@ class TestBox:
         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
 
index 6ae3e88..1ea0aa2 100644 (file)
@@ -169,7 +169,7 @@ class TestPlc:
     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
index ecbec21..27a2317 100755 (executable)
@@ -51,7 +51,7 @@ function kill_pids () {
 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
index e35b633..eee7a1e 100755 (executable)
@@ -44,8 +44,5 @@ echo "New $HDA is created..."
 #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