diff --git a/test/bin/assert-crowdsec-not-running b/test/bin/assert-crowdsec-not-running index c6f381af9..78e702ea0 100755 --- a/test/bin/assert-crowdsec-not-running +++ b/test/bin/assert-crowdsec-not-running @@ -1,7 +1,8 @@ #!/usr/bin/env bash is_crowdsec_running() { - PIDS=$(pgrep -x 'crowdsec|crowdsec.test|crowdsec.cover') + # ignore processes in containers + PIDS=$(pgrep --ns $$ -x 'crowdsec|crowdsec.test|crowdsec.cover') } # The process can be slow, especially on CI and during test coverage.