(name: str, proc: Popen)
| 137 | |
| 138 | |
| 139 | def wait_background_cmd(name: str, proc: Popen) -> int: |
| 140 | output = proc.communicate()[0] |
| 141 | status = proc.returncode |
| 142 | print(f"run {name}: {cmds[name]}") |
| 143 | if status: |
| 144 | print(output.decode().rstrip()) |
| 145 | print("\nFAILED:", name) |
| 146 | if name in FAST_FAIL: |
| 147 | exit(status) |
| 148 | return status |
| 149 | |
| 150 | |
| 151 | def main() -> None: |