[Chapel Merge] Attempt to fix homebrew testing again

Branch: refs/heads/main
Revision: 02509bed247fc4e289e0da2b3e59777dbcc66e0e
Author: jabraham17
Link: Attempt to fix homebrew testing again by jabraham17 · Pull Request #28547 · chapel-lang/chapel · GitHub
Log Message:
Attempt to fix homebrew testing again (#28547)

Trying to fix the continued sporadics with homebrew testing by adding
retry logic

The retry logic is based on the idea that the "File exists" error we are
plagued with goes away after rerunning brew upgrade

[Not reviewed]

Compare: Comparing 2cf44ef72101d6cd6381e24dfb924748c7b93448...33b8f4fe163ebeff3b03dd17725e1198ce743c09 · chapel-lang/chapel · GitHub

Diff:
M util/cron/test-homebrew.bash
M util/packaging/docker/test/brew_install.bash
https://github.com/chapel-lang/chapel/pull/28547.diff