mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
test: Use our own netcat implementation :(
Netcat's behaviour after seeing EOF from stdin seems to not be very portable or consistent, even under the same platform. This has caused t-05-null_address to break recently under some conditions, for example depending on the particular Debian version of netcat-openbsd used, and the current situation is unclear. See https://bugs.debian.org/854292 and https://bugs.debian.org/849192 for more details. To stop depending on this brittle behaviour, this patch unfortunately introduces a simple python3-based netcat for our tests to use.
This commit is contained in:
@@ -61,6 +61,10 @@ function smtpc.py() {
|
||||
${UTILDIR}/smtpc.py "$@"
|
||||
}
|
||||
|
||||
function nc.py() {
|
||||
${UTILDIR}/nc.py "$@"
|
||||
}
|
||||
|
||||
function mail_diff() {
|
||||
${UTILDIR}/mail_diff "$@"
|
||||
}
|
||||
@@ -83,7 +87,7 @@ function fail() {
|
||||
function wait_until_ready() {
|
||||
PORT=$1
|
||||
|
||||
while ! nc -z localhost $PORT; do
|
||||
while ! nc.py -z localhost $PORT; do
|
||||
sleep 0.1
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user