Skip to content

Commit

Permalink
utils/service: assume no service system during generic OS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Dec 7, 2023
1 parent ab6a7ed commit fc2c8bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/utils/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def self.installed?(formula)
sig { returns(T.nilable(Pathname)) }
def self.launchctl
return @launchctl if defined? @launchctl
return if ENV["HOMEBREW_TEST_GENERIC_OS"]

@launchctl = which("launchctl")
end
Expand All @@ -33,6 +34,7 @@ def self.launchctl
sig { returns(T.nilable(Pathname)) }
def self.systemctl
return @systemctl if defined? @systemctl
return if ENV["HOMEBREW_TEST_GENERIC_OS"]

@systemctl = which("systemctl")
end
Expand Down

0 comments on commit fc2c8bb

Please sign in to comment.