Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name test-webserver-Be-more-verbose-about-what-we-re-doing.patch
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
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