From 8d030131a4cf2fdb11f8d70be2262fb22117b1f0 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sun, 13 Oct 2019 12:43:57 -0700 Subject: [PATCH] tools: fix test runner in presence of NODE_REPL_EXTERNAL_MODULE PR-URL: https://github.com/nodejs/node/pull/29956 Reviewed-By: Richard Lau Reviewed-By: Rich Trott --- tools/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test.py b/tools/test.py index ff08749425eb5a..b7831861a639f3 100755 --- a/tools/test.py +++ b/tools/test.py @@ -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