From e18304ed026c9f39e509ca8a19ce85ea10b2b236 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sat, 8 Dec 2007 13:22:15 +0000 Subject: [PATCH] saves vmplayer stdout and stderr in vmplayer.log --- system/TestSite.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/system/TestSite.py b/system/TestSite.py index f9d4caa..817e21d 100644 --- a/system/TestSite.py +++ b/system/TestSite.py @@ -138,14 +138,12 @@ class TestSite: def run_vmware(self,liste_nodes,display): path=os.path.dirname(sys.argv[0]) - print path - print " kill last vmware before any new installation " + print "* Killing any running vmware or vmplayer instance" self.kill_all_vmwares() - print 'i will be displayed here========>', display - arg='< /dev/null &>/dev/null &' + print "* Displaying vmplayer on DISPLAY=",display for l in liste_nodes : - #os.system('set -x; vmplayer VirtualFile-%s/My_Virtual_Machine.vmx %s '%(l['hostname'],arg)) - os.system('set -x; DISPLAY=%s vmplayer %s/VirtualFile-%s/My_Virtual_Machine.vmx %s '%(display,path,l['hostname'],arg)) + print "* Starting vmplayer for node %s -- see vmplayer.log",l['hostname'] + os.system('set -x; cd %s/VirtualFile-%s ; DISPLAY=%s vmplayer My_Virtual_Machine.vmx < /dev/null 2>&1 >> vmplayer.log &'%(path,l['hostname'],display)) def delete_known_hosts(self): try: -- 2.47.0