X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d65114fdee11cfd20833a96c34ebf5346baeb755..b13ad9d7173ac5dff945d4a2ec572510ff0fd5da:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 6331ec2523..2797ec3109 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -540,10 +540,22 @@ do_test_once() { fi elif [[ "$2" == "pip" ]] then - # $3 can name a path directory for us to use, including trailing - # slash; e.g., the bin/ subdirectory of a virtualenv. - cd "$WORKSPACE/$1" \ - && "${3}python" setup.py ${short:+--short-tests-only} test ${testargs[$1]} + tries=0 + cd "$WORKSPACE/$1" && while : + do + tries=$((${tries}+1)) + # $3 can name a path directory for us to use, including trailing + # slash; e.g., the bin/ subdirectory of a virtualenv. + "${3}python" setup.py ${short:+--short-tests-only} test ${testargs[$1]} + result=$? + if [[ ${tries} < 3 && ${result} == 137 ]] + then + printf '\n*****\n%s tests killed -- retrying\n*****\n\n' "$1" + continue + else + break + fi + done elif [[ "$2" != "" ]] then "test_$2"