(self, ctx, params, env, timeout)
| 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() |
no test coverage detected