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 <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
devsnek committed Oct 13, 2019
1 parent 8728f86 commit ea3d5ff
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 @@ -705,6 +705,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 ea3d5ff

Please sign in to comment.