Skip to content

Commit

Permalink
tests/formulae: skip attestation verification when bottle-reinstallin…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Oct 2, 2024
1 parent 8b90458 commit 280fa3e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/tests/formulae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,15 @@ def bottle_reinstall_formula(formula, new_formula, args:)
@unchanged_dependencies -= @unchanged_build_dependencies
end

test "brew", "install", "--only-dependencies", @bottle_filename
test "brew", "install", @bottle_filename
verify_attestations = if formula.name == "gh"
nil
else
ENV.fetch("HOMEBREW_VERIFY_ATTESTATIONS", nil)
end
test "brew", "install", "--only-dependencies", @bottle_filename,
env: { "HOMEBREW_VERIFY_ATTESTATIONS" => verify_attestations }
test "brew", "install", @bottle_filename,
env: { "HOMEBREW_VERIFY_ATTESTATIONS" => verify_attestations }
end

def build_bottle?(formula, args:)
Expand Down

0 comments on commit 280fa3e

Please sign in to comment.