X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b8751a1a220ea451d44303268ea9207c2152aed2..9bda36e2c94aefc6cb05763e453ad4afdaa6199d:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index eb2fecf74d..0eb421454e 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -38,7 +38,7 @@ WORKSPACE=path Arvados source tree to test. CONFIGSRC=path Dir with config.yml file containing PostgreSQL section for use by tests. services/api_test="TEST=test/functional/arvados/v1/collections_controller_test.rb" Restrict apiserver tests to the given file -sdk/python_test="--test-suite tests.test_keep_locator" +sdk/python_test="tests/test_api.py::ArvadosApiTest" Restrict Python SDK tests to the given class lib/dispatchcloud_test="-check.vv" Show all log messages, even when tests pass (also works @@ -712,9 +712,11 @@ do_test_once() { fi python3 -m pytest ${testargs[$1]} result=$? - if [[ ${tries} < 3 && ${result} == 137 ]] + # 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 killed -- retrying\n*****\n\n' "$1" + printf '\n*****\n%s tests exited with code 2 -- retrying\n*****\n\n' "$1" continue else break