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
This commit is contained in:
		
							parent
							
								
									2f6840fd85
								
							
						
					
					
						commit
						d133eee36b
					
				@ -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"
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user