Skip to content
Snippets Groups Projects
Unverified Commit fd4ed351 authored by Michka Popoff's avatar Michka Popoff Committed by GitHub
Browse files

Merge pull request #8755 from MikeMcQuaid/pgrep-pkill

test: check for pgrep/pkill for developers/CI.
parents 65e51daf 541fecea
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,11 @@ begin ...@@ -24,6 +24,11 @@ begin
trap("INT", old_trap) 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 = args.named.to_resolved_formulae.first
formula.extend(Homebrew::Assertions) formula.extend(Homebrew::Assertions)
formula.extend(Homebrew::FreePort) formula.extend(Homebrew::FreePort)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment