Use more then one attempt to run shell tests
They are rather unstable, especially IPython + PyPy, but others also are.
This commit is contained in:
parent
652613a776
commit
d6e0dc7169
|
@ -90,7 +90,7 @@ run() {
|
|||
NL="$(printf '\nE')"
|
||||
NL="${NL%E}"
|
||||
|
||||
run_test() {
|
||||
do_run_test() {
|
||||
TEST_TYPE="$1"
|
||||
shift
|
||||
TEST_CLIENT="$1"
|
||||
|
@ -180,6 +180,15 @@ run_test() {
|
|||
return 0
|
||||
}
|
||||
|
||||
run_test() {
|
||||
local attempts=3
|
||||
while test $attempts -gt 0 ; do
|
||||
do_run_test "$@" && return 0
|
||||
attempts=$(( attempts - 1 ))
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
test -d tests/shell && rm -r tests/shell
|
||||
mkdir tests/shell
|
||||
git init tests/shell/3rd
|
||||
|
|
Loading…
Reference in New Issue