From 3b3ceafaf922e1d79950595eaa501aa412913820 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 23 Oct 2017 18:47:39 +1100 Subject: 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 Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- benchmark/_http-benchmarkers.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'benchmark/_http-benchmarkers.js') 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; } -- cgit v1.2.3