1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

test: Remove nc.py

The nc.py script is only used in a single test, and for waiting for a
TCP port to be opened for listening.

This patch replaces it entirely, by using chamuyero for the test, and
bash for waiting on a TCP port.
This commit is contained in:
Alberto Bertogli
2017-07-13 22:03:17 +01:00
parent 82a1e4597f
commit a85ba1252b
5 changed files with 25 additions and 69 deletions

View File

@@ -61,10 +61,6 @@ function smtpc.py() {
${UTILDIR}/smtpc.py "$@"
}
function nc.py() {
${UTILDIR}/nc.py "$@"
}
function mail_diff() {
${UTILDIR}/mail_diff "$@"
}
@@ -91,7 +87,7 @@ function fail() {
function wait_until_ready() {
PORT=$1
while ! nc.py -z localhost $PORT; do
while ! bash -c "true < /dev/tcp/localhost/$PORT" 2>/dev/null ; do
sleep 0.1
done
}