Skip to content

Commit

Permalink
test-webserver: Be more verbose about what we're doing
Browse files Browse the repository at this point in the history
Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #1990
Approved by: alexlarsson
  • Loading branch information
smcv authored and rh-atomic-bot committed Aug 27, 2018
1 parent 3224e26 commit 155d911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test-webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 155d911

Please sign in to comment.