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

Method _parse_args

deps/v8/tools/testrunner/base_runner.py:325–344  ·  view source on GitHub ↗
(self, parser, sys_args)

Source from the content-addressed store, hash-verified

323 pass # pragma: no cover
324
325 def _parse_args(self, parser, sys_args):
326 options, args = parser.parse_args(sys_args)
327
328 options.test_root = Path(options.test_root)
329 options.outdir = Path(options.outdir)
330
331 if options.arch and ',' in options.arch: # pragma: no cover
332 print('Multiple architectures are deprecated')
333 raise TestRunnerError()
334
335 # We write a test schedule and the system memory stats by default
336 # alongside json test results on bots.
337 if options.json_test_results:
338 result_dir = Path(options.json_test_results).parent
339 if not options.log_test_schedule:
340 options.log_test_schedule = result_dir / 'test_schedule.log'
341 if not options.log_system_memory:
342 options.log_system_memory = result_dir / 'memory_stats.log'
343
344 return AugmentedOptions.augment(options), args
345
346 def _load_build_config(self):
347 for outdir in self._possible_outdirs():

Callers 1

executeMethod · 0.95

Calls 4

TestRunnerErrorClass · 0.85
augmentMethod · 0.80
printFunction · 0.50
parse_argsMethod · 0.45

Tested by

no test coverage detected