File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ echo "travis_fold:end:cmake"
67
67
# uploading and subtract the bootstrapping time from that.
68
68
# Hopefully clocks are in sync :)
69
69
TRAVIS_TIME=90
70
- UPLOAD_TIME=8
70
+ UPLOAD_TIME=5
71
71
CURRENT_TIME=` date +%s`
72
72
TIMEOUT=$( expr \( ${TRAVIS_TIME} - ${UPLOAD_TIME} \) \* 60 - ${CURRENT_TIME} + ${TRAVIS_TIMESTAMP} )
73
73
TIMEOUT=$(( ${TIMEOUT} < 300 ? 300 : ${TIMEOUT} ))
@@ -105,7 +105,15 @@ popd > /dev/null # /root/QGIS
105
105
# ##########
106
106
# Run tests
107
107
# ##########
108
- python3 /root/QGIS/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V -E " $( cat /root/QGIS/.ci/travis/linux/blacklist.txt | sed -r ' /^(#.*?)?$/d' | paste -sd ' |' -) " -S /root/QGIS/.ci/travis/travis.ctest --output-on-failure
108
+ CURRENT_TIME=` date +%s`
109
+ TIMEOUT=$( expr \( ${TRAVIS_TIME} - ${UPLOAD_TIME} \) \* 60 - ${CURRENT_TIME} + ${TRAVIS_TIMESTAMP} )
110
+ echo " Timeout: ${TIMEOUT} s (started at ${TRAVIS_TIMESTAMP} , current: ${CURRENT_TIME} )"
111
+ timeout ${TIMEOUT} s python3 /root/QGIS/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V -E " $( cat /root/QGIS/.ci/travis/linux/blacklist.txt | sed -r ' /^(#.*?)?$/d' | paste -sd ' |' -) " -S /root/QGIS/.ci/travis/travis.ctest --output-on-failure
112
+ rv=$?
113
+ if [ $rv -eq 124 ] ; then
114
+ printf ' \n\n${bold}Build and test timeout. Please restart the build for meaningful results.${endbold}\n'
115
+ exit # $rv
116
+ fi
109
117
110
118
# #######################
111
119
# Show ccache statistics
You can’t perform that action at this time.
0 commit comments