mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
- Use defer for summary saving and HTML report generation to ensure they run regardless of exit path - Remove unnecessary sync.Once for cleanup operations since defer guarantees single execution - Simplify error handling logic by removing redundant runErr checks - Improve interrupt handling with better logging messages - Ensure graceful cleanup and data persistence even when interrupted