diff --git a/Library/Homebrew/test/cmd/outdated_spec.rb b/Library/Homebrew/test/cmd/outdated_spec.rb index c2af5d43b9aa2..1c56e88dcc0d9 100644 --- a/Library/Homebrew/test/cmd/outdated_spec.rb +++ b/Library/Homebrew/test/cmd/outdated_spec.rb @@ -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 diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index 831d8f7404071..a95057764540d 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -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