Run a command in the given directory and return the result.
(cmd: list[str], cwd: Path)
| 155 | |
| 156 | |
| 157 | def _run_subprocess(cmd: list[str], cwd: Path) -> subprocess.CompletedProcess: |
| 158 | """Run a command in the given directory and return the result.""" |
| 159 | return subprocess.run( |
| 160 | cmd, |
| 161 | cwd=cwd, |
| 162 | capture_output=True, |
| 163 | text=True, |
| 164 | timeout=300, |
| 165 | ) |
| 166 | |
| 167 | |
| 168 | def _mark_case(case: Sample) -> list: |
no outgoing calls
no test coverage detected