From 1d62067883d9053fd91d06b2829988aa26a58d4d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 28 Jul 2019 14:11:29 +0100 Subject: [PATCH] test/spec_helper: handle needs_linux. Add similar logic to that for macOS. --- Library/Homebrew/test/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) 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