diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index c67fd38c20..8388cfc9e3 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -98,6 +98,10 @@ RSpec.configure do |config| skip "Needs official command Taps." unless ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"] end + config.before(:each, :needs_linux) do + skip "Not on Linux." unless OS.linux? + end + config.before(:each, :needs_macos) do skip "Not on macOS." unless OS.mac? end