diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-12-04 09:26:20 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-12-04 09:26:20 +0100 |
commit | 93fe786f6824df71f5f912754f0bd8e7bf1424e7 (patch) | |
tree | 96ed2d9710d9106a712e05aa9cf0dd0f376d010f /js/test/Common/run.py | |
parent | ICE-6043 - bumping timeout for IceDiscovery test (diff) | |
download | ice-93fe786f6824df71f5f912754f0bd8e7bf1424e7.tar.bz2 ice-93fe786f6824df71f5f912754f0bd8e7bf1424e7.tar.xz ice-93fe786f6824df71f5f912754f0bd8e7bf1424e7.zip |
Minor fix to Util.py
Diffstat (limited to 'js/test/Common/run.py')
-rwxr-xr-x | js/test/Common/run.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/js/test/Common/run.py b/js/test/Common/run.py index 7dea5ee1ff2..e467a1d1ea8 100755 --- a/js/test/Common/run.py +++ b/js/test/Common/run.py @@ -62,22 +62,6 @@ import Ice, Expect Ice.loadSlice("\"" + os.path.join(TestUtil.toplevel, "js", "test", "Common", "Controller.ice") + "\"") import Test -# The NodeJS interpreter is called "nodejs" on some platforms -# (e.g., Ubuntu) -# -nodeCmd = "node" -if "NODE" in os.environ: - nodeCmd = os.environ["NODE"] -else: - for path in os.environ["PATH"].split(os.pathsep): - # - # Stop if we find "node" in the PATH first. - # - if os.path.exists(os.path.join(path, "node")): - break - elif os.path.exists(os.path.join(path, "nodejs")): - nodeCmd = "nodejs" - break class ServerI(Test.Server): def __init__(self, name, process): @@ -176,6 +160,7 @@ class Reader(threading.Thread): class Server(Ice.Application): def run(self, args): jsDir = os.path.join(TestUtil.toplevel, "js") + nodeCmd = TestUtil.getNodeCmd() httpServer = subprocess.Popen(nodeCmd + " \"" + os.path.join(jsDir, "bin", "HttpServer.js") + "\"", shell = True, stdin = subprocess.PIPE, |