add: dynamic waiting with wait-for-it
This commit is contained in:
		
							parent
							
								
									3117427f1f
								
							
						
					
					
						commit
						b969ddd4ff
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -53,9 +53,13 @@ core_id=$!
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
# wait for start
 | 
			
		||||
if [ -x "$(command -v wait-for-it)" ]
 | 
			
		||||
then
 | 
			
		||||
    wait-for-it localhost:5000 -t 15
 | 
			
		||||
else
 | 
			
		||||
    echo "waiting 5 seconds for server"
 | 
			
		||||
    sleep 5;
 | 
			
		||||
curl -s -o /dev/null --retry 5 --retry-all-errors --retry-connrefused http://localhost:5000/api/v1/tags
 | 
			
		||||
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
export PYTHONPATH=$PYTHONPATH:$source_dir/tavern_utils
 | 
			
		||||
tavern-ci --disable-warnings $source_dir/tavern_tests
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue