Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

test(docker): fail the non-root smoke test when dumb-init is not PID 1

Yudhi Armyndharis5de1ef03e5bb
diff --git a/scripts/smoke-test-non-root.sh b/scripts/smoke-test-non-root.sh
index e038ae6de..2baffbed9 100755
--- a/scripts/smoke-test-non-root.sh
+++ b/scripts/smoke-test-non-root.sh
@@ -55,7 +55,10 @@ echo " PID 1: $PID1"
if echo "$PID1" | grep -q "dumb-init"; then
echo "PASS: dumb-init is PID 1"
else
- echo "WARN: PID 1 is '$PID1' (expected dumb-init) — check entrypoint chain"
+ # Without it as PID 1 nothing reaps Chromium's exited children or forwards signals past Node.
+ echo "FAIL: PID 1 is '$PID1' (expected dumb-init), check the ENTRYPOINT chain" >&2
+ cleanup
+ exit 1
fi
cleanup