From 6cd58eecacf185d0627d9207c3cb5a6ee2724f5e Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 19 Oct 2010 09:54:03 +0000 Subject: [PATCH] Corrections for Windows KERNEL tests with --xterm or -x options --- bin/server.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/server.py b/bin/server.py index cb5451c62..47f061d89 100755 --- a/bin/server.py +++ b/bin/server.py @@ -38,7 +38,10 @@ class Server: self.CMD=[] self.ARGS=[] if self.args.get('xterm'): + if sys.platform != "win32": self.ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold'] + else: + self.ARGS=['cmd', '/c', 'start cmd.exe', '/K'] def __init__(self,args): self.args=args @@ -50,9 +53,10 @@ class Server: myargs=self.ARGS if self.args.get('xterm'): # (Debian) send LD_LIBRARY_PATH to children shells (xterm) - env_ld_library_path=['env', 'LD_LIBRARY_PATH=' - + os.getenv("LD_LIBRARY_PATH")] - myargs = myargs +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path + if sys.platform != "win32": + env_ld_library_path=['env', 'LD_LIBRARY_PATH=' + + os.getenv("LD_LIBRARY_PATH")] + myargs = myargs +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path command = myargs + self.CMD #print "command = ", command if sys.platform == "win32": -- 2.39.2