mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +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:
@@ -34,8 +34,8 @@ run_msmtp aliasB@srv-B < content
|
|||||||
|
|
||||||
# Wait until one of them has noticed and stopped the loop.
|
# Wait until one of them has noticed and stopped the loop.
|
||||||
while sleep 0.1; do
|
while sleep 0.1; do
|
||||||
wget -q -O .data-A/vars http://localhost:1099/debug/vars
|
wget -q -o /dev/null -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-B/vars http://localhost:2099/debug/vars
|
||||||
if grep -q '"chasquid/smtpIn/loopsDetected": 1,' .data-?/vars; then
|
if grep -q '"chasquid/smtpIn/loopsDetected": 1,' .data-?/vars; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user