From f7a4fa895c4168f672706e3d531abac845f2ae65 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Fri, 8 Dec 2017 13:57:25 +0000 Subject: [PATCH] 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. --- test/t-09-loop/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/t-09-loop/run.sh b/test/t-09-loop/run.sh index 24fbca4..e584549 100755 --- a/test/t-09-loop/run.sh +++ b/test/t-09-loop/run.sh @@ -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