Skip to content

Commit

Permalink
Try adding :skip_generic option
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Nov 7, 2024
1 parent c17ffb8 commit 4504e23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/test/cmd/outdated_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
RSpec.describe Homebrew::Cmd::Outdated do
it_behaves_like "parseable arguments"

it "outputs JSON", :integration_test do
# json v2.8.1 is inconsistent it how it renders empty arrays,
# for now we are skipping generic tests.
it "outputs JSON", :integration_test, :skip_generic do
setup_test_formula "testball"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath

Expand Down
4 changes: 4 additions & 0 deletions Library/Homebrew/test/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@
skip "Not running on macOS." unless OS.mac?
end

config.before(:each, :skip_generic) do
skip "Not running on generic OS." unless OS.mac? || OS.linux?
end

config.before(:each, :needs_ci) do
skip "Not running on CI." unless ENV["CI"]
end
Expand Down

0 comments on commit 4504e23

Please sign in to comment.