test_integration_cmds: non-OS X skip cask/services
This commit is contained in:
parent
b7b89b9406
commit
c9fabf57a5
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user