mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
tools: fix test runner in presence of NODE_REPL_EXTERNAL_MODULE
PR-URL: https://github.com/nodejs/node/pull/29956 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
8728f8660a
commit
ea3d5ff785
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue