summaryrefslogtreecommitdiff
path: root/.ci/distcheck.sh
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-28 14:09:05 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-09-14 11:38:02 +0200
commit70d0fd0d52f4deac18132cc80672aab6d31bb06f (patch)
tree28cc23b01c0923fabab2628af02e50ce6caf60df /.ci/distcheck.sh
parentf570e7435e66f0272a8c8a4c5ee4f6db475db41c (diff)
ci: run tests up to 5 times before failing
when travis is throttling resourcse more than usual (resources are dynamically allocated since we are not using a paid service), it can be the case that tests fail even more than usual. this number may need to be increased further if 5 does not provide enough reliability Differential Revision: https://phab.enlightenment.org/D6920
Diffstat (limited to '.ci/distcheck.sh')
-rwxr-xr-x.ci/distcheck.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.ci/distcheck.sh b/.ci/distcheck.sh
index afc4fe1835..8c8e7cdf97 100755
--- a/.ci/distcheck.sh
+++ b/.ci/distcheck.sh
@@ -70,10 +70,11 @@ travis_endfold check-build
70travis_fold check-TESTS check-TESTS 70travis_fold check-TESTS check-TESTS
71set +e 71set +e
72export EINA_LOG_BACKTRACE="0" 72export EINA_LOG_BACKTRACE="0"
73for tries in 1 2 3 ; do 73NUM_TRIES=5
74for tries in $(seq 1 ${NUM_TRIES}); do
74 make ${AM_MAKEFLAGS} -C src/ -j1 check-TESTS && break 75 make ${AM_MAKEFLAGS} -C src/ -j1 check-TESTS && break
75 cat src/test-suite.log 76 cat src/test-suite.log
76 if [ $tries != 3 ] ; then echo "tests failed, trying again!" ; continue ; fi 77 if [ $tries != ${NUM_TRIES} ] ; then echo "tests failed, trying again!" ; continue ; fi
77 exit 1 78 exit 1
78done 79done
79travis_endfold check-TESTS 80travis_endfold check-TESTS