summaryrefslogtreecommitdiff
path: root/test/sequential
diff options
context:
space:
mode:
authorBenjamin <ben@npmjs.com>2018-11-03 15:42:13 -0700
committerRich Trott <rtrott@gmail.com>2018-11-03 18:35:04 -0700
commit616fac9169840c76512920e66b6428971df3d289 (patch)
tree7da4cda98f2495077348f118f0ba917d58162bb5 /test/sequential
parent2ea70eae732682851ae6f9403daad7a966c11f5f (diff)
downloadandroid-node-v8-616fac9169840c76512920e66b6428971df3d289.tar.gz
android-node-v8-616fac9169840c76512920e66b6428971df3d289.tar.bz2
android-node-v8-616fac9169840c76512920e66b6428971df3d289.zip
lib: make coverage work for Node.js
PR-URL: https://github.com/nodejs/node/pull/23941 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org>
Diffstat (limited to 'test/sequential')
-rw-r--r--test/sequential/test-inspector-enabled.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sequential/test-inspector-enabled.js b/test/sequential/test-inspector-enabled.js
index a7a0832793..f14e7c17d8 100644
--- a/test/sequential/test-inspector-enabled.js
+++ b/test/sequential/test-inspector-enabled.js
@@ -20,7 +20,10 @@ assert(
`;
const args = ['--inspect', '-e', script];
-const child = spawn(process.execPath, args, { stdio: 'inherit' });
+const child = spawn(process.execPath, args, {
+ stdio: 'inherit',
+ env: { ...process.env, NODE_V8_COVERAGE: '' }
+});
child.on('exit', (code, signal) => {
process.exit(code || signal);
});