X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dcdaf7450fb66da2bc904a21f29660ac75e5864a..11894563f28fb7f419771ed9dfa23ff8f1f14fd0:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 42c7d1240c..0eb421454e 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -712,9 +712,11 @@ do_test_once() { fi python3 -m pytest ${testargs[$1]} result=$? - if [[ ${tries} < 3 && ${result} == 75 ]] + # pytest uses exit code 2 to mean "test collection failed." + # See discussion in FUSE's IntegrationTest and MountTestBase. + if [[ ${tries} < 3 && ${result} == 2 ]] then - printf '\n*****\n%s tests exited TEMPFAIL -- retrying\n*****\n\n' "$1" + printf '\n*****\n%s tests exited with code 2 -- retrying\n*****\n\n' "$1" continue else break