tools: avoid parsing test files twice

PR-URL: https://github.com/nodejs/node/pull/59526
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Pietro Marchini
2025-08-20 21:33:00 +02:00
committed by GitHub
parent 499a5c3451
commit 2782b4dd2d

View File

@@ -788,6 +788,11 @@ def Execute(args, context, timeout=None, env=None, disable_core_files=False,
for key, value in env.items():
env_copy[key] = value
# We append NODE_SKIP_FLAG_CHECK (ref: test/common/index.js)
# to avoid parsing the test files twice when looking for
# flags or environment variables defined via // Flags: and // Env:
env_copy["NODE_SKIP_FLAG_CHECK"] = "true"
preexec_fn = None
def disableCoreFiles():