GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: optimize wildcard execution in tools/test.py · nodejs/node@47fa765

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • test.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+22-21Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,27 +1712,28 @@ def Main():
17121712
all_unused = [ ]
17131713
unclassified_tests = [ ]
17141714
globally_unused_rules = None
1715-
for path in paths:
1716-
for arch in options.arch:
1717-
for mode in options.mode:
1718-
vm = context.GetVm(arch, mode)
1719-
if not exists(vm):
1720-
print("Can't find shell executable: '%s'" % vm)
1721-
continue
1722-
archEngineContext = Execute([vm, "-p", "process.arch"], context)
1723-
vmArch = archEngineContext.stdout.rstrip()
1724-
if archEngineContext.exit_code != 0 or vmArch == "undefined":
1725-
print("Can't determine the arch of: '%s'" % vm)
1726-
print(archEngineContext.stderr.rstrip())
1727-
continue
1728-
env = {
1729-
'mode': mode,
1730-
'system': utils.GuessOS(),
1731-
'arch': vmArch,
1732-
'type': get_env_type(vm, options.type, context),
1733-
'asan': get_asan_state(vm, context),
1734-
'pointer_compression': get_pointer_compression_state(vm, context),
1735-
}
1715+
1716+
for arch in options.arch:
1717+
for mode in options.mode:
1718+
vm = context.GetVm(arch, mode)
1719+
if not exists(vm):
1720+
print("Can't find shell executable: '%s'" % vm)
1721+
continue
1722+
archEngineContext = Execute([vm, "-p", "process.arch"], context)
1723+
vmArch = archEngineContext.stdout.rstrip()
1724+
if archEngineContext.exit_code != 0 or vmArch == "undefined":
1725+
print("Can't determine the arch of: '%s'" % vm)
1726+
print(archEngineContext.stderr.rstrip())
1727+
continue
1728+
env = {
1729+
'mode': mode,
1730+
'system': utils.GuessOS(),
1731+
'arch': vmArch,
1732+
'type': get_env_type(vm, options.type, context),
1733+
'asan': get_asan_state(vm, context),
1734+
'pointer_compression': get_pointer_compression_state(vm, context),
1735+
}
1736+
for path in paths:
17361737
test_list = root.ListTests([], path, context, arch, mode)
17371738
unclassified_tests += test_list
17381739
cases, unused_rules = config.ClassifyTests(test_list, env)

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.