Skip to content

Commit 8d03013

Browse files
devsnektargos
authored andcommitted
tools: fix test runner in presence of NODE_REPL_EXTERNAL_MODULE
PR-URL: #29956 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 59033f6 commit 8d03013

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/test.py

+4
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,10 @@ def Execute(args, context, timeout=None, env=None, disable_core_files=False, std
700700
if "NODE_PATH" in env_copy:
701701
del env_copy["NODE_PATH"]
702702

703+
# Remove NODE_REPL_EXTERNAL_MODULE
704+
if "NODE_REPL_EXTERNAL_MODULE" in env_copy:
705+
del env_copy["NODE_REPL_EXTERNAL_MODULE"]
706+
703707
# Extend environment
704708
for key, value in env.items():
705709
env_copy[key] = value

0 commit comments

Comments
 (0)