From 2666fa00984fbcf83e98a80d62fe7d149dfd8daf Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 20 Sep 2018 19:52:56 +1000 Subject: [PATCH] Retry svn checkout on failure up to 3 times --- depends/install_extra_test_images.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/depends/install_extra_test_images.sh b/depends/install_extra_test_images.sh index 089a5e4d7..0a98fc9d9 100755 --- a/depends/install_extra_test_images.sh +++ b/depends/install_extra_test_images.sh @@ -3,7 +3,17 @@ rm -rf test_images -# Use SVN to just fetch a single git subdirectory -svn checkout https://github.com/python-pillow/pillow-depends/trunk/test_images +# Use SVN to just fetch a single Git subdirectory +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