(self, last_digits: int = -15000)
| 390 | post_install_log: Path | None = None |
| 391 | |
| 392 | def read_text(self, last_digits: int = -15000) -> str: |
| 393 | parts = [ |
| 394 | f"Command: {self.cmd}", |
| 395 | f"Return code: {self.returncode}", |
| 396 | ] |
| 397 | |
| 398 | if self.post_install_log: |
| 399 | parts.append( |
| 400 | f"\n=== MSI LOG POST INSTALL: {self.post_install_log} ===\n" |
| 401 | + _read_briefcase_log_tail(self.post_install_log, last_digits) |
| 402 | ) |
| 403 | |
| 404 | if self.msi_log: |
| 405 | parts.append( |
| 406 | f"\n=== MSI LOG: {self.msi_log} ===\n" |
| 407 | + _read_briefcase_log_tail(self.msi_log, last_digits) |
| 408 | ) |
| 409 | |
| 410 | return "\n".join(parts) |
| 411 | |
| 412 | |
| 413 | @dataclass |
no test coverage detected