mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
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="$(printf '\nE')"
|
||||||
NL="${NL%E}"
|
NL="${NL%E}"
|
||||||
|
|
||||||
run_test() {
|
do_run_test() {
|
||||||
TEST_TYPE="$1"
|
TEST_TYPE="$1"
|
||||||
shift
|
shift
|
||||||
TEST_CLIENT="$1"
|
TEST_CLIENT="$1"
|
||||||
@ -180,6 +180,15 @@ run_test() {
|
|||||||
return 0
|
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
|
test -d tests/shell && rm -r tests/shell
|
||||||
mkdir tests/shell
|
mkdir tests/shell
|
||||||
git init tests/shell/3rd
|
git init tests/shell/3rd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user