[dx] fix: exclude ps from self destructing enviroments check

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil
2025-07-02 13:11:08 +03:00
parent 512277fa93
commit 1f240387f9
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@
# Fail the test if any HelmRelease is not Ready
if kubectl get hr -A | grep -v " True " | grep -v NAME; then
kubectl get hr -A
fail "Some HelmReleases failed to reconcile"
echo "Some HelmReleases failed to reconcile" >&2
fi
}

View File

@@ -18,8 +18,8 @@ while [ $# -gt 0 ]; do
done
check_once() {
OWN_PIDS=$(pstree -p $$ | grep -o '[0-9]\+' | sort -u)
ALL_PROCS=$(ps -eo pid=,comm=)
OWN_PIDS=$(pstree -p $$ | grep -o '[0-9]\+' | sort -u)
EXTERNAL_PIDS=$(
echo "$ALL_PROCS" | while read -r PID CMD; do
@@ -29,7 +29,7 @@ check_once() {
echo "$OWN_PIDS" | grep -q -x "$PID" && continue
case "$CMD" in
*qemu*) continue ;;
*qemu*|ps) continue ;;
esac
echo "PID=$PID CMD=$CMD"