(args: list[str], timeout: int = 20)
| 264 | |
| 265 | |
| 266 | def run_command(args: list[str], timeout: int = 20) -> subprocess.CompletedProcess[str]: |
| 267 | return subprocess.run( |
| 268 | args, |
| 269 | capture_output=True, |
| 270 | text=True, |
| 271 | encoding="utf-8", |
| 272 | errors="replace", |
| 273 | timeout=timeout, |
| 274 | check=False, |
| 275 | cwd=str(WORKSPACE), |
| 276 | **subprocess_window_options(), |
| 277 | ) |
| 278 | |
| 279 | |
| 280 | def wait_for(predicate: Callable[[], bool], timeout: float, interval: float = 1.0) -> bool: |
no test coverage detected