tests: Fix bug #79. Finish "make test" without waiting for user input.
Old behaviour is preserved by passing in the environment variable
TINYPROXY_TESTS_WAIT=yes.
Michael
(cherry picked from commit d133eee36b
)
This commit is contained in:
parent
ed3ada7c26
commit
f63730c77e
@ -186,9 +186,11 @@ run_basic_webclient_request "$TINYPROXY_IP:$TINYPROXY_PORT" "http://$WEBSERVER_I
|
|||||||
echo -n "requesting statspage via stathost url..."
|
echo -n "requesting statspage via stathost url..."
|
||||||
run_basic_webclient_request "$TINYPROXY_IP:$TINYPROXY_PORT" "http://$TINYPROXY_STATHOST_IP"
|
run_basic_webclient_request "$TINYPROXY_IP:$TINYPROXY_PORT" "http://$TINYPROXY_STATHOST_IP"
|
||||||
|
|
||||||
echo "You can continue using the webserver and tinyproxy."
|
if test "x$TINYPROXY_TESTS_WAIT" = "xyes"; then
|
||||||
echo -n "hit <enter> to stop the servers and exit: "
|
echo "You can continue using the webserver and tinyproxy."
|
||||||
read READ
|
echo -n "hit <enter> to stop the servers and exit: "
|
||||||
|
read READ
|
||||||
|
fi
|
||||||
|
|
||||||
stop_tinyproxy
|
stop_tinyproxy
|
||||||
stop_webserver
|
stop_webserver
|
||||||
|
Loading…
Reference in New Issue
Block a user