Skip to content

Commit

Permalink
tools: fix test runner in presence of NODE_REPL_EXTERNAL_MODULE
Browse files Browse the repository at this point in the history
PR-URL: #29956
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
devsnek authored and targos committed Nov 10, 2019
1 parent 59033f6 commit 8d03013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d03013

Please sign in to comment.