diff options
| author | Mike McQuaid | 2016-08-08 10:52:59 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-08 10:52:59 +0100 |
| commit | c9fabf57a5cd4cb0597d7cdbcd2a41ef17747a87 (patch) | |
| tree | 87f22d211cb0b5a4356b5720c5d65165306be663 /Library/Homebrew/test | |
| parent | b7b89b94061b039334dfe6ab93dcd2384642f087 (diff) | |
| download | brew-c9fabf57a5cd4cb0597d7cdbcd2a41ef17747a87.tar.bz2 | |
test_integration_cmds: non-OS X skip cask/services
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 8c1278cbe..298485b3c 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") |
