Skip to content

Commit

Permalink
add timeout and wait only for appropriated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 authored and nyalldawson committed Sep 6, 2021
1 parent 580e7f4 commit 73753f9
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .docker/docker-qgis-test.sh
Expand Up @@ -179,13 +179,25 @@ fi
# Wait for WebDAV container to be ready
#######################################

echo "Wait for webdav to be ready..."
while ! curl -f -X GET -u qgis:myPasswd! http://$QGIS_WEBDAV_HOST:$QGIS_WEBDAV_PORT/webdav_tests/ &> /dev/null;
do
sleep 1
printf "."
done
echo "done"
if [ $# -eq 0 ] || [ $1 = "ALL_BUT_PROVIDERS" ] || [ $1 = "ALL" ] ; then

echo "Wait for webdav to be ready..."
COUNT=0
while ! curl -f -X GET -u qgis:myPasswd! http://$QGIS_WEBDAV_HOST:$QGIS_WEBDAV_PORT/webdav_tests/ &> /dev/null;
do
printf "."
sleep 5
if [[ $(( COUNT++ )) -eq 40 ]]; then
break
fi
done
if [[ ${COUNT} -eq 41 ]]; then
echo "Error: WebDAV docker timeout!!!"
exit 1
else
echo "done"
fi
fi

###########
# Run tests
Expand Down

0 comments on commit 73753f9

Please sign in to comment.