Skip to content

Commit ea3d5ff

Browse files
committed
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 8728f86 commit ea3d5ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ def Execute(args, context, timeout=None, env=None, disable_core_files=False, std
705705
if "NODE_PATH" in env_copy:
706706
del env_copy["NODE_PATH"]
707707

708+
# Remove NODE_REPL_EXTERNAL_MODULE
709+
if "NODE_REPL_EXTERNAL_MODULE" in env_copy:
710+
del env_copy["NODE_REPL_EXTERNAL_MODULE"]
711+
708712
# Extend environment
709713
for key, value in env.items():
710714
env_copy[key] = value

0 commit comments

Comments
 (0)