git » chasquid » commit f7a4fa8

test: Work around wget's logging to files

author Alberto Bertogli
2017-12-08 13:57:25 UTC
committer Alberto Bertogli
2017-12-08 13:57:25 UTC
parent 94c44928621bdb1ad71da59aa323f9cdfd5ad54b

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 +2 -2

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