summaryrefslogtreecommitdiff
path: root/test/travis_before_linux.sh
diff options
context:
space:
mode:
authorLuca Toscano <elukey@apache.org>2019-12-22 10:30:59 +0000
committerLuca Toscano <elukey@apache.org>2019-12-22 10:30:59 +0000
commite4aa805aba268d9bdaacc30a0fa43069189dcf0e (patch)
treefac04efdb2f53f73b3653197f834a152e98602de /test/travis_before_linux.sh
parentf190b4eb89726d4d6da33560de067436bdb9eed4 (diff)
downloadhttpd-e4aa805aba268d9bdaacc30a0fa43069189dcf0e.tar.gz
test/travis_before_linux.sh: add a simple bash retry to svn export
Sometimes a build is killed by Travis due to svn export taking a long time to complete (> 10m). This change should be a test to see if a simple workaround reduces the noise to the dev@ mailing list. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1871907 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/travis_before_linux.sh')
-rwxr-xr-xtest/travis_before_linux.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/travis_before_linux.sh b/test/travis_before_linux.sh
index 94287947c1..c31d207f7a 100755
--- a/test/travis_before_linux.sh
+++ b/test/travis_before_linux.sh
@@ -1,6 +1,13 @@
#!/bin/bash -ex
if ! test -v SKIP_TESTING; then
- svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework
+ # Use a rudimental retry workflow as workaround to svn export hanging for minutes.
+ # Travis automatically kills a build if one step takes more than 10 minutes without
+ # 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
+ done
fi
function install_apx() {