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

Method _load_build_config

deps/v8/tools/testrunner/base_runner.py:346–374  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

344 return AugmentedOptions.augment(options), args
345
346 def _load_build_config(self):
347 for outdir in self._possible_outdirs():
348 try:
349 self.build_config = self._do_load_build_config(outdir)
350
351 # In auto-detect mode the outdir is always where we found the build config.
352 # This ensures that we'll also take the build products from there.
353 self.outdir = outdir
354 break
355 except TestRunnerError:
356 pass
357
358 if not self.build_config: # pragma: no cover
359 print('Failed to load build config')
360 raise TestRunnerError
361
362 print('Build found: %s' % self.outdir)
363
364 # Represents the OS where tests are run on. Same as host OS except for
365 # Android and iOS, which are determined by build output.
366 if self.build_config.is_android:
367 self.target_os = 'android'
368 elif self.build_config.is_ios:
369 self.target_os = 'ios'
370 else:
371 self.target_os = utils.GuessOS()
372
373 # Verify integrity between build variables and variant configs.
374 self.build_config.ensure_vars(REQUIRED_BUILD_VARIABLES)
375
376 def _do_load_build_config(self, outdir):
377 build_config_path = outdir / "v8_build_config.json"

Callers 1

executeMethod · 0.95

Calls 4

_possible_outdirsMethod · 0.95
_do_load_build_configMethod · 0.95
ensure_varsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected