Merge pull request #20460 from Homebrew/test_bot_tweaks

Fix some test-bot failures/bad output
This commit is contained in:
Mike McQuaid 2025-08-14 14:03:05 +00:00 committed by GitHub
commit df84f7a264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,7 @@ rescue Exception => e # rubocop:disable Lint/RescueException
error_hash["output"] = e.output error_hash["output"] = e.output
end end
error_pipe.puts error_hash.to_json error_pipe&.puts error_hash.to_json
error_pipe.close error_pipe&.close
exit! 1 exit! 1
end end

View File

@ -622,7 +622,7 @@ module Formulary
if !path_realpath.start_with?("#{HOMEBREW_CELLAR}/", "#{HOMEBREW_LIBRARY}/Taps/", "#{HOMEBREW_CACHE}/") && if !path_realpath.start_with?("#{HOMEBREW_CELLAR}/", "#{HOMEBREW_LIBRARY}/Taps/", "#{HOMEBREW_CACHE}/") &&
(path_string.include?("/") || path_string.end_with?(".rb")) (path_string.include?("/") || path_string.end_with?(".rb"))
raise <<~WARNING raise <<~WARNING
Rejecting formula at #{!path_realpath} because it's not in a tap. Rejecting formula at #{path_string} because it's not in a tap.
Homebrew requires formulae to be in a tap. Homebrew requires formulae to be in a tap.
To create a tap, run e.g. To create a tap, run e.g.