diff --git a/Library/Homebrew/test.rb b/Library/Homebrew/test.rb index 4c2b1455f5..fc09ba2e9f 100644 --- a/Library/Homebrew/test.rb +++ b/Library/Homebrew/test.rb @@ -24,6 +24,11 @@ begin trap("INT", old_trap) + if Homebrew::EnvConfig.developer? || ENV["CI"].present? + raise "cannot find child processes without `pgrep`, please install!" unless which("pgrep") + raise "cannot kill child processes without `pkill`, please install!" unless which("pkill") + end + formula = args.named.to_resolved_formulae.first formula.extend(Homebrew::Assertions) formula.extend(Homebrew::FreePort)