From: dmv Date: Tue, 19 Oct 2010 09:54:03 +0000 (+0000) Subject: Corrections for Windows KERNEL tests with --xterm or -x options X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6cd58eecacf185d0627d9207c3cb5a6ee2724f5e;p=modules%2Fkernel.git Corrections for Windows KERNEL tests with --xterm or -x options --- 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":