Run a command in the given directory and return the result.
(cmd: list[str], cwd: Path)
| 167 | |
| 168 | |
| 169 | def _run_subprocess(cmd: list[str], cwd: Path) -> subprocess.CompletedProcess: |
| 170 | """Run a command in the given directory and return the result.""" |
| 171 | return subprocess.run( |
| 172 | cmd, |
| 173 | cwd=cwd, |
| 174 | capture_output=True, |
| 175 | text=True, |
| 176 | timeout=300, |
| 177 | ) |
| 178 | |
| 179 | |
| 180 | def _mark_example(case: Example) -> list: |