xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

fix flaky specs when `progress_content` is `nil` #434

Closed rogerluan closed 3 years ago

rogerluan commented 3 years ago

Resolves #430

Some times progress_content = File.read(progress_log_file).split("\r").last would return nil, probably because the file although existed, it didn't have any content (temporarily at least).

In those cases, progress_content would be nil and crash down the process, causing the failed specs described in #430. This PR aims to fix that.