1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-23 15:37:01 +00:00

test: Test permanent hook failure

This patch adds a test to make sure we handle correctly the case where a
hook exits with a permanent failure.
This commit is contained in:
Alberto Bertogli
2019-12-01 20:31:59 +00:00
parent a12875162f
commit 45a294403d
3 changed files with 22 additions and 1 deletions

View File

@@ -10,5 +10,10 @@ if [ "$RCPT_TO" == "blockme@testserver" ]; then
exit 1
fi
if [ "$RCPT_TO" == "permanent@testserver" ]; then
echo "Nos hacemos la permanente"
exit 20 # permanent
fi
echo "X-Post-Data: success"