Write standardized footer with exit code. Format: +++++++ exit code N Args: exit_code: Process exit code
(self, exit_code: int)
| 65 | print(line) |
| 66 | |
| 67 | def write_footer(self, exit_code: int) -> None: |
| 68 | """ |
| 69 | Write standardized footer with exit code. |
| 70 | |
| 71 | Format: |
| 72 | +++++++ |
| 73 | exit code N |
| 74 | |
| 75 | Args: |
| 76 | exit_code: Process exit code |
| 77 | """ |
| 78 | with self._lock: |
| 79 | self._file_handle.write("+++++++\n") |
| 80 | self._file_handle.write(f"exit code {exit_code}\n") |
| 81 | |
| 82 | def close(self) -> None: |
| 83 | """Flush and close the file handle.""" |
no test coverage detected