MCPcopy Create free account
hub / github.com/nodejs/node / _DefaultDimensions

Method _DefaultDimensions

deps/v8/tools/mb/mb.py:392–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

390 return ret
391
392 def _DefaultDimensions(self):
393 if not self.args.default_dimensions:
394 return []
395
396 # This code is naive and just picks reasonable defaults per platform.
397 if self.platform == 'darwin':
398 os_dim = ('os', 'Mac-10.12')
399 elif self.platform.startswith('linux'):
400 os_dim = ('os', 'Ubuntu-16.04')
401 elif self.platform == 'win32':
402 os_dim = ('os', 'Windows-10')
403 else:
404 raise MBErr('unrecognized platform string "%s"' % self.platform)
405
406 return [('pool', 'Chrome'),
407 ('cpu', 'x86-64'),
408 os_dim]
409
410 def CmdBuildbucket(self):
411 self.ReadConfigFile()

Callers

nothing calls this directly

Calls 1

MBErrClass · 0.85

Tested by

no test coverage detected