mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: pass through stderr in benchmark tests
This helps a lot with debugging failing benchmark tests, which would otherwise just print an assertion for the exit code (something like `+1 -0`, which yields almost no information about a failure). PR-URL: https://github.com/nodejs/node/pull/21860 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
This commit is contained in:
1 parent
52020dc09a
commit
7e23080d45
1 file changed
+4
-1
@@ -20,7 +20,10 @@ function runBenchmark(name, args, env) {
|
||||
|
||||
const mergedEnv = Object.assign({}, process.env, env);
|
||||
|
||||
const child = fork(runjs, argv, { env: mergedEnv, stdio: 'pipe' });
|
||||
const child = fork(runjs, argv, {
|
||||
env: mergedEnv,
|
||||
stdio: ['inherit', 'pipe', 'inherit', 'ipc']
|
||||
});
|
||||
child.stdout.setEncoding('utf8');
|
||||
|
||||
let stdout = '';
|
||||
|
||||
Reference in new issue
Block a user