Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: avoid parsing test files twice
  • Loading branch information
pmarchini committed Aug 18, 2025
commit 1ba5b7ea6c98ca4e835d9e7836bdba43b5f0d67f
6 changes: 6 additions & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,12 @@ 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:
if not "NODE_SKIP_FLAG_CHECK" in env_copy:
env_copy["NODE_SKIP_FLAG_CHECK"] = "true"
Comment thread
pmarchini marked this conversation as resolved.
Outdated

preexec_fn = None

def disableCoreFiles():
Expand Down