Allow running func tests while running containers with crowdsec (#2137)
Co-authored-by: Thibault "bui" Koechlin <thibault@crowdsec.net>
This commit is contained in:
parent
3884c5f47d
commit
bbfb7d1cfa
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
is_crowdsec_running() {
|
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.
|
# The process can be slow, especially on CI and during test coverage.
|
||||||
|
|
Loading…
Reference in a new issue