Skip to content

Commit

Permalink
Placate rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Mar 9, 2023
1 parent 9ec8232 commit 25153bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Homebrew/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
T.cast(ENV, Stdenv).setup_build_environment(formula: formula, testing_formula: true)

# tests can also return false to indicate failure
# TODO: the current version of sorbet does not support `proc` here
# rubocop:disable Style/Proc
run_test = Proc.new { raise "test returned false" if formula.run_test(keep_tmp: args.keep_tmp?) == false }
# rubocop:enable Style/Proc
if args.debug? # --debug is interactive
run_test.call
else
Expand Down

0 comments on commit 25153bc

Please sign in to comment.