()
| 225 | |
| 226 | # Stream output in a background thread so timeout can work |
| 227 | def _drain_stdout(): |
| 228 | try: |
| 229 | for line in process.stdout: |
| 230 | log_message(line.rstrip('\n')) |
| 231 | except Exception as e: |
| 232 | log_message(f"Error reading output: {e}") |
| 233 | reader = threading.Thread(target=_drain_stdout, daemon=True) |
| 234 | reader.start() |
| 235 |
nothing calls this directly
no test coverage detected