diff options
author | Jose <jose@zeroc.com> | 2014-12-02 22:33:52 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-12-02 22:33:52 +0100 |
commit | 1a990ca46c45bcb069a0726ec2d7187fdd2aeeb2 (patch) | |
tree | 706274e405985f26a94ce99e7f222e0bb40010d7 /js/test/Common/run.py | |
parent | (ICE-6047) - icebox32 on x86 Linux install (RHEL6) (diff) | |
download | ice-1a990ca46c45bcb069a0726ec2d7187fdd2aeeb2.tar.bz2 ice-1a990ca46c45bcb069a0726ec2d7187fdd2aeeb2.tar.xz ice-1a990ca46c45bcb069a0726ec2d7187fdd2aeeb2.zip |
Fixed (ICE-6038) - Issues running JS testsuite on Windows 7 no VC
Diffstat (limited to 'js/test/Common/run.py')
-rwxr-xr-x | js/test/Common/run.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/js/test/Common/run.py b/js/test/Common/run.py index 2cdc70cf13d..7dea5ee1ff2 100755 --- a/js/test/Common/run.py +++ b/js/test/Common/run.py @@ -48,10 +48,14 @@ if os.environ.get("RUNNING_TEST_CONTROLLER_WITH_ENV", "") == "": env = TestUtil.getTestEnv("cpp", os.getcwd()) env["RUNNING_TEST_CONTROLLER_WITH_ENV"] = "yes" try: + for a in sys.argv[1:]: + args.append(a) + sys.exit(os.spawnve(os.P_WAIT, sys.executable, args, env)) sys.exit(os.spawnve(os.P_WAIT, sys.executable, [sys.executable, "run.py"], env)) except: - print("") - print("To remove the certificate trust settings, run: `" + sys.argv[0] + " --clean'") + if sys.platform == "darwin": + print("") + print("To remove the certificate trust settings, run: `" + sys.argv[0] + " --clean'") sys.exit(0) import Ice, Expect @@ -188,8 +192,9 @@ class Server(Ice.Application): return httpServer.poll() if type(line) != str: line = line.decode() - sys.stdout.write(line) - sys.stdout.flush() + line = line.strip("\n") + if len(line) > 0: + print(line) if line.find("listening on ports 8080 (http) and 9090 (https)...") != -1: break |