From ea3d5ff785e5f7b327942f9b47b3bd958e77c51f 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 0726619bd092a0..878e2bef35da46 100755 --- a/tools/test.py +++ b/tools/test.py @@ -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