summaryrefslogtreecommitdiffstats
path: root/test/travis_before_linux.sh
diff options
context:
space:
mode:
authorLuca Toscano <elukey@apache.org>2019-12-28 09:29:30 +0100
committerLuca Toscano <elukey@apache.org>2019-12-28 09:29:30 +0100
commit2688e472ff453bcf25c7804161c85ca0df6b2bb4 (patch)
tree732f734fe0d69a36feb28ceff334a069886f1a30 /test/travis_before_linux.sh
parentAdd support for cross compiling to apxs. If apxs is being executed from somew... (diff)
downloadapache2-2688e472ff453bcf25c7804161c85ca0df6b2bb4.tar.xz
apache2-2688e472ff453bcf25c7804161c85ca0df6b2bb4.zip
test/travis_before_linux.sh: make for loop more resilient
This is a follow up to my last commit to this file, to make the for loop more resilient with the following: - use --force in svn export, otherwise the second attempt will always fail due to the dest directory already present. - exit 1 in case the 5 tries end up in a non zero exit code (to fail fast the build). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872045 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/travis_before_linux.sh')
-rwxr-xr-xtest/travis_before_linux.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/travis_before_linux.sh b/test/travis_before_linux.sh
index 04f63d9202..8e4543b46d 100755
--- a/test/travis_before_linux.sh
+++ b/test/travis_before_linux.sh
@@ -5,8 +5,16 @@ if ! test -v SKIP_TESTING; then
# reporting any progress.
for i in {1..5}
do
- timeout 60 svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework
- if [ $? -eq 0 ]; then break; else sleep 120; fi
+ timeout 60 svn export --force -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework
+ if [ $? -eq 0 ]; then
+ break
+ else
+ if [ $i -eq 5 ]; then
+ exit 1
+ else
+ sleep 120
+ fi
+ fi
done
fi