[Chapel Merge] Fix homebrew formula testing with 'revision'

Branch: refs/heads/main
Revision: 7829035aff16d7b576b60b0621b73a6585e5f886
Author: jabraham17
Link: Fix homebrew formula testing with 'revision' by jabraham17 · Pull Request #29283 · chapel-lang/chapel · GitHub
Log Message:
Fix homebrew formula testing with 'revision' (#29283)

Fixes testing of our homebrew formula when there is a revision of the
formula

[Reviewed by @arifthpe]

Compare: Comparing fbdb6afcc89063b084441654686d34b0661ccf7a...9d271a60a0454793f4f5e0058a544a276f76f9a6 · chapel-lang/chapel · GitHub

Diff:
M util/cron/test-homebrew-linux.bash
M util/cron/test-homebrew.bash
https://github.com/chapel-lang/chapel/pull/29283.diff