Skip to content

Commit

Permalink
Fix proc type.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored Mar 9, 2023
1 parent 4c08622 commit 055c687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
ENV.setup_build_environment(formula: formula, testing_formula: true)

# tests can also return false to indicate failure
run_test = proc { |_| raise "test returned false" if formula.run_test(keep_tmp: args.keep_tmp?) == false }
run_test = proc do |_ = nil|
raise "test returned false" if formula.run_test(keep_tmp: args.keep_tmp?) == false
end
if args.debug? # --debug is interactive
run_test.call
else
Expand Down

0 comments on commit 055c687

Please sign in to comment.