test-webserver: Be more verbose about what we're doing
authorSimon McVittie <smcv@debian.org>
Mon, 20 Aug 2018 18:24:02 +0000 (19:24 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 20 Aug 2018 20:29:02 +0000 (21:29 +0100)
Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name test-webserver-Be-more-verbose-about-what-we-re-doing.patch

tests/test-webserver.sh

index 7accd0b0332480a018c9c50415881c88032e8cff..4508537de2cc984a77c6e40015474240546efe17 100755 (executable)
@@ -7,6 +7,7 @@ cmd=${2:-python -m SimpleHTTPServer 0}
 test_tmpdir=$(pwd)
 
 [ "$dir" != "" ] && cd ${dir}
+echo "Running web server: PYTHONUNBUFFERED=1 setsid $cmd" >&2
 env PYTHONUNBUFFERED=1 setsid $cmd >${test_tmpdir}/httpd-output &
 child_pid=$!
 echo "Web server pid: $child_pid" >&2
@@ -30,3 +31,4 @@ done
 port=$(cat ${test_tmpdir}/httpd-port)
 echo "http://127.0.0.1:${port}" > ${test_tmpdir}/httpd-address
 echo "$child_pid" > ${test_tmpdir}/httpd-pid
+echo "Started web server '$cmd': process $child_pid on port $port" >&2