add: dynamic waiting with wait-for-it

This commit is contained in:
Tobias Reisinger 2020-08-21 18:38:57 +02:00
parent 3117427f1f
commit b969ddd4ff

View file

@ -53,9 +53,13 @@ core_id=$!
# wait for start # 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; 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 export PYTHONPATH=$PYTHONPATH:$source_dir/tavern_utils
tavern-ci --disable-warnings $source_dir/tavern_tests tavern-ci --disable-warnings $source_dir/tavern_tests