1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00

test: Work around wget's logging to files

There's a bug in wget where it logs to files if -q is used:
https://savannah.gnu.org/bugs/?51181

It is harmless to the test, but it clutters the directory and the test
output, so this patch works around the issue by forcing it to log to
/dev/null.
This commit is contained in:
Alberto Bertogli
2017-12-08 13:57:25 +00:00
parent 94c4492862
commit f7a4fa895c

View File

@@ -34,8 +34,8 @@ run_msmtp aliasB@srv-B < content
# Wait until one of them has noticed and stopped the loop.
while sleep 0.1; do
wget -q -O .data-A/vars http://localhost:1099/debug/vars
wget -q -O .data-B/vars http://localhost:2099/debug/vars
wget -q -o /dev/null -O .data-A/vars http://localhost:1099/debug/vars
wget -q -o /dev/null -O .data-B/vars http://localhost:2099/debug/vars
if grep -q '"chasquid/smtpIn/loopsDetected": 1,' .data-?/vars; then
break
fi