Skip to content

Commit

Permalink
tests: update determine-test-runners tests
Browse files Browse the repository at this point in the history
We've decoupled the macOS versions there from
`MacOSVersion#supported_release?`, so these tests need updating.
  • Loading branch information
carlocab committed Sep 11, 2024
1 parent 4ab19e0 commit c51bb19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Library/Homebrew/test/dev-cmd/determine-test-runners_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def get_runners(file)
out = []
MacOSVersion::SYMBOLS.each_value do |v|
macos_version = MacOSVersion.new(v)
next if macos_version.unsupported_release?
next if macos_version < :monterey
next if macos_version > :sonoma

out << "#{v}-x86_64"
out << "#{v}-arm64"
Expand Down
3 changes: 2 additions & 1 deletion Library/Homebrew/test/github_runner_matrix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
allow(ENV).to receive(:fetch).with("GITHUB_RUN_ID").and_return("12345")
end

# FIXME: Avoid changing this every time we change Homebrew/core CI runner macOS versions.
let(:newest_supported_macos) do
MacOSVersion::SYMBOLS.find { |_, v| !MacOSVersion.new(v).prerelease? }
MacOSVersion::SYMBOLS.find { |k, _| k == :sonoma }
end

let(:testball) { TestRunnerFormula.new(Testball.new) }
Expand Down

0 comments on commit c51bb19

Please sign in to comment.