( cmd: list[str], input_data: bytes | None = None, )
| 332 | |
| 333 | |
| 334 | def run( |
| 335 | cmd: list[str], |
| 336 | input_data: bytes | None = None, |
| 337 | ) -> subprocess.CompletedProcess[bytes]: |
| 338 | _cmd_history(cmd) |
| 339 | |
| 340 | return subprocess.run( |
| 341 | cmd, |
| 342 | input=input_data, |
| 343 | stdout=subprocess.PIPE, |
| 344 | stderr=subprocess.STDOUT, |
| 345 | check=True, |
| 346 | ) |
| 347 | |
| 348 | |
| 349 | def locate_binary(name: str) -> str: |
no test coverage detected