MCPcopy Index your code
hub / github.com/nodejs/node / GetVm

Method GetVm

tools/test.py:975–994  ·  view source on GitHub ↗
(self, arch, mode)

Source from the content-addressed store, hash-verified

973 self.use_error_reporter = False
974
975 def GetVm(self, arch, mode):
976 if self.vm is not None:
977 return self.vm
978 if arch == 'none':
979 name = 'out/Debug/node' if mode == 'debug' else 'out/Release/node'
980 else:
981 name = 'out/%s.%s/node' % (arch, mode)
982
983 # Currently GYP does not support output_dir for MSVS.
984 # http://code.google.com/p/gyp/issues/detail?id=40
985 # It will put the builds into Release/node.exe or Debug/node.exe
986 if utils.IsWindows():
987 if not exists(name + '.exe'):
988 name = name.replace('out/', '')
989 name = os.path.abspath(name + '.exe')
990
991 if not exists(name):
992 raise ValueError('Could not find executable. Should be ' + name)
993
994 return name
995
996 def GetTimeout(self, mode, section=''):
997 timeout = self.timeout * TIMEOUT_SCALEFACTOR[ARCH_GUESS or 'ia32'][mode]

Callers 5

MainFunction · 0.95
GetRunConfigurationMethod · 0.80
GetRunConfigurationMethod · 0.80
GetConfigurationFunction · 0.80
GetRunConfigurationMethod · 0.80

Calls 1

existsFunction · 0.85

Tested by

no test coverage detected