Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[K/N][tests] Don't attempt to download simulator after first failure
Sometimes, e.g. due to a bug in Xcode, downloading a simulator runtime might fail. See e.g. 89589210 here: https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes In that case, it makes little sense to try downloading the same simulator runtime later again. Moreover, such attempts might lead to accumulating stale downloads in /Library/Developer/CoreSimulator/Images/Inbox/, wasting disk space. This commit caches the download result, so that if the first attempt fails, then the later attempts will just rethrow the same exception. ^KTI-1683 (cherry picked from commit b487d67)
- Loading branch information