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

Method _create_cmd

deps/v8/tools/testrunner/objects/testcase.py:507–526  ·  view source on GitHub ↗
(self, ctx, params, env, timeout)

Source from the content-addressed store, hash-verified

505 return self.path_and_suffix('.mjs')
506
507 def _create_cmd(self, ctx, params, env, timeout):
508 shell_dir = self.test_config.shell_dir
509 try:
510 # Try to make the shell dir relative to the current working directory,
511 # keep the absolute path if it fails.
512 shell_dir = shell_dir.relative_to(Path.cwd())
513 except ValueError:
514 pass
515
516 return ctx.command(
517 cmd_prefix=self.test_config.command_prefix,
518 shell=ctx.platform_shell(self.get_shell(), params, shell_dir),
519 args=params,
520 env=env,
521 timeout=timeout,
522 verbose=self.test_config.verbose,
523 test_case=self,
524 handle_sigterm=True,
525 log_process_stats=self.test_config.log_process_stats,
526 )
527
528 def _parse_source_flags(self, source=None):
529 source = source or self.get_source()

Callers 1

get_commandMethod · 0.95

Calls 3

get_shellMethod · 0.95
commandMethod · 0.80
platform_shellMethod · 0.45

Tested by

no test coverage detected