Merge pull request #3368 from radarhere/svn_checkout

Retry svn checkout on failure up to 3 times
This commit is contained in:
Hugo 2018-09-21 11:48:57 +03:00 committed by GitHub
commit 253443bf20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,17 @@
rm -rf test_images rm -rf test_images
# Use SVN to just fetch a single git subdirectory # Use SVN to just fetch a single Git subdirectory
svn checkout https://github.com/python-pillow/pillow-depends/trunk/test_images svn_checkout()
{
if [ ! -z $1 ]; then
echo ""
echo "Retrying svn checkout..."
echo ""
fi
svn checkout https://github.com/python-pillow/pillow-depends/trunk/test_images
}
svn_checkout || svn_checkout retry || svn_checkout retry || svn_checkout retry
cp -r test_images/* ../Tests/images cp -r test_images/* ../Tests/images