Skip to content

Commit 99da7fb

Browse files
pmarchinitargos
authored andcommitted
tools: avoid parsing test files twice
PR-URL: #59526 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent fe86bc6 commit 99da7fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,11 @@ def Execute(args, context, timeout=None, env=None, disable_core_files=False,
788788
for key, value in env.items():
789789
env_copy[key] = value
790790

791+
# We append NODE_SKIP_FLAG_CHECK (ref: test/common/index.js)
792+
# to avoid parsing the test files twice when looking for
793+
# flags or environment variables defined via // Flags: and // Env:
794+
env_copy["NODE_SKIP_FLAG_CHECK"] = "true"
795+
791796
preexec_fn = None
792797

793798
def disableCoreFiles():

0 commit comments

Comments
 (0)