diff options
author | Rod Vagg <rod@vagg.org> | 2017-10-23 18:47:39 +1100 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2017-11-10 09:24:17 +1100 |
commit | 3b3ceafaf922e1d79950595eaa501aa412913820 (patch) | |
tree | 7a160246a62b53e724f9dc68354b918ef3789973 /benchmark/_http-benchmarkers.js | |
parent | 5e1e460ac1d84b4b23a9c3a0280549b29af6ed1f (diff) | |
download | android-node-v8-3b3ceafaf922e1d79950595eaa501aa412913820.tar.gz android-node-v8-3b3ceafaf922e1d79950595eaa501aa412913820.tar.bz2 android-node-v8-3b3ceafaf922e1d79950595eaa501aa412913820.zip |
test: pass process.env to child processes
For variables such as LD_LIBRARY_PATH and DYLD_LIBRARY_PATH that are
needed for dynamically linked binaries
PR-URL: https://github.com/nodejs/node/pull/16405
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'benchmark/_http-benchmarkers.js')
-rw-r--r-- | benchmark/_http-benchmarkers.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/benchmark/_http-benchmarkers.js b/benchmark/_http-benchmarkers.js index f9359b13d5..54b7481afa 100644 --- a/benchmark/_http-benchmarkers.js +++ b/benchmark/_http-benchmarkers.js @@ -91,11 +91,9 @@ class TestDoubleBenchmarker { create(options) { const child = child_process.fork(this.executable, { silent: true, - env: { - duration: options.duration, - connections: options.connections, - path: `http://127.0.0.1:${options.port}${options.path}` - } + env: Object.assign({}, process.env, { + test_url: `http://127.0.0.1:${options.port}${options.path}` + }) }); return child; } |