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:
ZyX 2015-01-08 02:30:03 +03:00
parent 652613a776
commit d6e0dc7169
1 changed files with 10 additions and 1 deletions

View File

@ -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