From d133eee36b3b479f1c5c6754ffb91c4eea706099 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 22 Feb 2010 23:12:51 +0100 Subject: 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 --- tests/scripts/run_tests.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index fdc1ee3..b83cff9 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -186,9 +186,11 @@ run_basic_webclient_request "$TINYPROXY_IP:$TINYPROXY_PORT" "http://$WEBSERVER_I echo -n "requesting statspage via stathost url..." run_basic_webclient_request "$TINYPROXY_IP:$TINYPROXY_PORT" "http://$TINYPROXY_STATHOST_IP" -echo "You can continue using the webserver and tinyproxy." -echo -n "hit to stop the servers and exit: " -read READ +if test "x$TINYPROXY_TESTS_WAIT" = "xyes"; then + echo "You can continue using the webserver and tinyproxy." + echo -n "hit to stop the servers and exit: " + read READ +fi stop_tinyproxy stop_webserver -- cgit v1.2.3