From a0c10b9406e428a71eba85b8b48eb6c51a7d4b82 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 27 Feb 2008 16:16:26 +0000 Subject: [PATCH] *some cosmetic in Starting qemu node in local or remote host --- system/TestNode.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/system/TestNode.py b/system/TestNode.py index 58983db..935994e 100644 --- a/system/TestNode.py +++ b/system/TestNode.py @@ -170,16 +170,15 @@ class TestNode: dest_dir=self.buildname()+"/qemu-%s"%(hostname) utils.header('Starting qemu for node %s and Redirect logs to /%s/%s.log ' %(hostname, dest_dir, hostname)) - if (not self.is_local(host_box)): - self.test_plc.run_in_host("ssh root@%s ~/%s/env-qemu start >> ~/%s/%s.log " - %(host_box, dest_dir, dest_dir, hostname )) - self.test_plc.run_in_host("ssh root@%s ~/%s/start-qemu-node %s >> ~/%s/%s.log & " - %( host_box, dest_dir, dest_dir, dest_dir, hostname)) + if (not self.is_local(host_box)): + host_string="ssh root@",host_box else: - self.test_plc.run_in_host(" ~/%s/env-qemu start >> ~/%s/%s.log " - %(dest_dir, dest_dir, hostname )) - self.test_plc.run_in_host(" ~/%s/start-qemu-node %s >> ~/%s/%s.log & " - %(dest_dir, dest_dir, dest_dir, hostname)) + host_string="" + + self.test_plc.run_in_host(" %s ~/%s/env-qemu start >> ~/%s/%s.log " + %(host_string, dest_dir, dest_dir, hostname )) + self.test_plc.run_in_host(" %s ~/%s/start-qemu-node %s >> ~/%s/%s.log & " + %(host_string, dest_dir, dest_dir, dest_dir, hostname)) def kill_qemu (self): hostname = self.name() -- 2.43.0