From fc2c8bbdaac6c6855e7c7c354e2c8a35549b7104 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Thu, 7 Dec 2023 03:16:15 +0000 Subject: [PATCH] utils/service: assume no service system during generic OS tests --- Library/Homebrew/utils/service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/utils/service.rb b/Library/Homebrew/utils/service.rb index edd6deb524a5c9..ceb8cd36e2bf2a 100644 --- a/Library/Homebrew/utils/service.rb +++ b/Library/Homebrew/utils/service.rb @@ -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 @@ -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