From c9fabf57a5cd4cb0597d7cdbcd2a41ef17747a87 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 8 Aug 2016 10:52:59 +0100 Subject: [PATCH] test_integration_cmds: non-OS X skip cask/services --- Library/Homebrew/test/test_integration_cmds.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 8c1278cbe8..298485b3c3 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -43,6 +43,10 @@ class IntegrationCommandTests < Homebrew::TestCase end end + def needs_osx + skip "Not on OS X" unless OS.mac? + end + def cmd_id_from_args(args) args_pretty = args.join(" ").gsub(TEST_TMPDIR, "@TMPDIR@") test_pretty = "#{self.class.name}\##{name}.#{@cmd_id_index += 1}" @@ -654,12 +658,14 @@ class IntegrationCommandTests < Homebrew::TestCase def test_cask needs_test_cmd_taps + needs_osx setup_remote_tap("caskroom/cask") cmd("cask", "list") end def test_services needs_test_cmd_taps + needs_osx setup_remote_tap("homebrew/services") assert_equal "Warning: No services available to control with `brew services`", cmd("services", "list")