cask: try fix a couple of permission edge cases under multi-user #31325
Annotations
8 errors
|
Run brew tests:
usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb#L115
Cask::Artifact::Uninstall#uninstall_phase when using :launchctl with regex wildcard searches installed launchctl items
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
#<ClassDouble(SystemCommand) (anonymous)> received :run with unexpected arguments
expected: ("/bin/launchctl", {:args=>["list", "my.fancy.package.service.12345"], :print_stderr=>false, :sudo=>true, :sudo_as_root=>true})
got: ("/bin/launchctl", {:args=>["remove", "my.fancy.package.service.12345"], :must_succeed=>true, :sudo=>true, :sudo_as_root=>true})
Diff:
@@ -1,6 +1,6 @@
["/bin/launchctl",
- {:args=>["list", "my.fancy.package.service.12345"],
- :print_stderr=>false,
+ {:args=>["remove", "my.fancy.package.service.12345"],
+ :must_succeed=>true,
:sudo=>true,
:sudo_as_root=>true}]
Please stub a default value first if message might be received with other args as well.
Shared Example Group: "#uninstall_phase or #zap_phase" called from ./test/cask/artifact/uninstall_spec.rb:7
|
Run brew tests:
usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb#L59
Cask::Artifact::Uninstall#uninstall_phase when using :launchctl works when job is owned by system
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
#<ClassDouble(SystemCommand) (anonymous)> received :run with unexpected arguments
expected: ("/bin/launchctl", {:args=>["list", "my.fancy.package.service"], :print_stderr=>false, :sudo=>true, :sudo_as_root=>true})
got: ("/bin/launchctl", {:args=>["remove", "my.fancy.package.service"], :must_succeed=>true, :sudo=>true, :sudo_as_root=>true})
Diff:
@@ -1,6 +1,6 @@
["/bin/launchctl",
- {:args=>["list", "my.fancy.package.service"],
- :print_stderr=>false,
+ {:args=>["remove", "my.fancy.package.service"],
+ :must_succeed=>true,
:sudo=>true,
:sudo_as_root=>true}]
Please stub a default value first if message might be received with other args as well.
Shared Example Group: "#uninstall_phase or #zap_phase" called from ./test/cask/artifact/uninstall_spec.rb:7
|
Run brew tests:
usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb#L32
Cask::Artifact::Uninstall#uninstall_phase when using :launchctl works when job is owned by user
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
#<ClassDouble(SystemCommand) (anonymous)> received :run with unexpected arguments
expected: ("/bin/launchctl", {:args=>["list", "my.fancy.package.service"], :print_stderr=>false, :sudo=>true, :sudo_as_root=>true})
got: ("/bin/launchctl", {:args=>["remove", "my.fancy.package.service"], :must_succeed=>false, :sudo=>false, :sudo_as_root=>false})
Diff:
@@ -1,6 +1,6 @@
["/bin/launchctl",
- {:args=>["list", "my.fancy.package.service"],
- :print_stderr=>false,
- :sudo=>true,
- :sudo_as_root=>true}]
+ {:args=>["remove", "my.fancy.package.service"],
+ :must_succeed=>false,
+ :sudo=>false,
+ :sudo_as_root=>false}]
Please stub a default value first if message might be received with other args as well.
Shared Example Group: "#uninstall_phase or #zap_phase" called from ./test/cask/artifact/uninstall_spec.rb:7
|
Run brew tests:
usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb#L115
Cask::Artifact::Zap#zap_phase when using :launchctl with regex wildcard searches installed launchctl items
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
#<ClassDouble(SystemCommand) (anonymous)> received :run with unexpected arguments
expected: ("/bin/launchctl", {:args=>["list", "my.fancy.package.service.12345"], :print_stderr=>false, :sudo=>true, :sudo_as_root=>true})
got: ("/bin/launchctl", {:args=>["remove", "my.fancy.package.service.12345"], :must_succeed=>true, :sudo=>true, :sudo_as_root=>true})
Diff:
@@ -1,6 +1,6 @@
["/bin/launchctl",
- {:args=>["list", "my.fancy.package.service.12345"],
- :print_stderr=>false,
+ {:args=>["remove", "my.fancy.package.service.12345"],
+ :must_succeed=>true,
:sudo=>true,
:sudo_as_root=>true}]
Please stub a default value first if message might be received with other args as well.
Shared Example Group: "#uninstall_phase or #zap_phase" called from ./test/cask/artifact/zap_spec.rb:7
|
Run brew tests:
usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb#L59
Cask::Artifact::Zap#zap_phase when using :launchctl works when job is owned by system
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
#<ClassDouble(SystemCommand) (anonymous)> received :run with unexpected arguments
expected: ("/bin/launchctl", {:args=>["list", "my.fancy.package.service"], :print_stderr=>false, :sudo=>true, :sudo_as_root=>true})
got: ("/bin/launchctl", {:args=>["remove", "my.fancy.package.service"], :must_succeed=>true, :sudo=>true, :sudo_as_root=>true})
Diff:
@@ -1,6 +1,6 @@
["/bin/launchctl",
- {:args=>["list", "my.fancy.package.service"],
- :print_stderr=>false,
+ {:args=>["remove", "my.fancy.package.service"],
+ :must_succeed=>true,
:sudo=>true,
:sudo_as_root=>true}]
Please stub a default value first if message might be received with other args as well.
Shared Example Group: "#uninstall_phase or #zap_phase" called from ./test/cask/artifact/zap_spec.rb:7
|
Run brew tests:
usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb#L32
Cask::Artifact::Zap#zap_phase when using :launchctl works when job is owned by user
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
#<ClassDouble(SystemCommand) (anonymous)> received :run with unexpected arguments
expected: ("/bin/launchctl", {:args=>["list", "my.fancy.package.service"], :print_stderr=>false, :sudo=>true, :sudo_as_root=>true})
got: ("/bin/launchctl", {:args=>["remove", "my.fancy.package.service"], :must_succeed=>false, :sudo=>false, :sudo_as_root=>false})
Diff:
@@ -1,6 +1,6 @@
["/bin/launchctl",
- {:args=>["list", "my.fancy.package.service"],
- :print_stderr=>false,
- :sudo=>true,
- :sudo_as_root=>true}]
+ {:args=>["remove", "my.fancy.package.service"],
+ :must_succeed=>false,
+ :sudo=>false,
+ :sudo_as_root=>false}]
Please stub a default value first if message might be received with other args as well.
Shared Example Group: "#uninstall_phase or #zap_phase" called from ./test/cask/artifact/zap_spec.rb:7
|
Run brew tests
The operation was canceled.
|
Loading