tests: Fix bug #79. Finish "make test" without waiting for user input.
authorMichael Adam <obnox@samba.org>
Mon, 22 Feb 2010 22:12:51 +0000 (23:12 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 22 Feb 2010 22:12:51 +0000 (23:12 +0100)
Old behaviour is preserved by passing in the environment variable
TINYPROXY_TESTS_WAIT=yes.

Michael

tests/scripts/run_tests.sh

index fdc1ee35af2a963960d4755552fdf76d269c1f03..b83cff91b554edda7c98fa904bbc4336a0e3a757 100755 (executable)
@@ -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 <enter> 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 <enter> to stop the servers and exit: "
+       read READ
+fi
 
 stop_tinyproxy
 stop_webserver