(raw_output: str, marker: str)
| 356 | |
| 357 | @staticmethod |
| 358 | def _extract_exit_code(raw_output: str, marker: str) -> int: |
| 359 | match = re.search(rf"{re.escape(marker)}:(-?\d+)", raw_output) |
| 360 | if match: |
| 361 | return int(match.group(1)) |
| 362 | return 0 |
| 363 | |
| 364 | @staticmethod |
| 365 | def _strip_marker(raw_output: str, marker: str) -> str: |