Skip to content
Permalink
Browse files

tools: fix test runner in presence of NODE_REPL_EXTERNAL_MODULE

PR-URL: #29956
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
devsnek authored and targos committed Oct 13, 2019
1 parent 59033f6 commit 8d030131a4cf2fdb11f8d70be2262fb22117b1f0
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/test.py
@@ -700,6 +700,10 @@ def Execute(args, context, timeout=None, env=None, disable_core_files=False, std
if "NODE_PATH" in env_copy:
del env_copy["NODE_PATH"]

# Remove NODE_REPL_EXTERNAL_MODULE
if "NODE_REPL_EXTERNAL_MODULE" in env_copy:
del env_copy["NODE_REPL_EXTERNAL_MODULE"]

# Extend environment
for key, value in env.items():
env_copy[key] = value

0 comments on commit 8d03013

Please sign in to comment.
You can’t perform that action at this time.