abuild: Implement a checkretry option
This allows a test suite to be retried automatically in case of flaky or
unreliable tests upstream. The default retry count is 5, but can be set
in abuild.conf with the variable $ABUILD_RETRY_COUNT
.
Closes: #15 (closed)
--
I'm terrible at shell so I don't know if there's a better way than this.
Merge request reports
Activity
Filter activity
requested review from @z
assigned to @awilfox
added 5 commits
-
d4cb8029...5453a857 - 4 commits from branch
master
- ea0f68f0 - abuild: Implement a checkretry option
-
d4cb8029...5453a857 - 4 commits from branch
added 4 commits
-
ea0f68f0...63674cd0 - 3 commits from branch
master
- 16f63fb0 - abuild: Implement a checkretry option
-
ea0f68f0...63674cd0 - 3 commits from branch
Without
seq
, and removingtry
variable:# wrap check() with retries check_retry() { count=${ABUILD_RETRY_COUNT:=5} (cd "$startdir"; while msg "$count attempt(s) remaining..." check && exit 0; test $((count=$(($count-1)))) -ne 0; do :; done; exit 1) }
Or, if you don't need to print the number of attempts remaining:
# wrap check() with retries check_retry() { count=${ABUILD_RETRY_COUNT:=5} (cd "$startdir"; while test $((count=$(($count-1)))) -ge 0; do check && exit 0; done; exit 1) }
Edited by Zach van Rijnadded 3 commits
-
16f63fb0...9562f576 - 2 commits from branch
master
- bcc4c863 - abuild: Implement a checkretry option
-
16f63fb0...9562f576 - 2 commits from branch
Please register or sign in to reply