Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Also update formula.rb 'TODO: replace `returns(BasicObject)` with `void`'
if formula.run_test(keep_tmp: args.keep_tmp?) == false
require "utils/output"
Utils::Output.odeprecated "`return false` in test", "`raise \"<reason for failure>\"`"
Utils::Output.odisabled "`return false` in test", "`raise \"<reason for failure>\"`"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to handle this in the follow-up PR that removes the proc wrapper. Adding caller: here is tricky because of define_method, so a redesign later will be cleaner.

Comment thread
MikeMcQuaid marked this conversation as resolved.
raise "test returned false"
end
Comment thread
MikeMcQuaid marked this conversation as resolved.
end
Expand Down
Loading