X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1e64cd695a165bd55a5aa595e566eb780aa10edb..608a1591840dfbeac3d5580c505b50bfface5929:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index ec6ced2226..27228a3741 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -470,6 +470,7 @@ stop_services() { && python sdk/python/tests/run_test_server.py stop \ && all_services_stopped=1 deactivate + unset ARVADOS_CONFIG } interrupt() { @@ -633,15 +634,12 @@ install_env() { for d in \ "$GOPATH/src/git.curoverse.com/arvados.git/tmp/GOPATH" \ "$GOPATH/src/git.curoverse.com/arvados.git/tmp" \ + "$GOPATH/src/git.curoverse.com/arvados.git/arvados" \ "$GOPATH/src/git.curoverse.com/arvados.git"; do + [[ -h "$d" ]] && rm "$d" [[ -d "$d" ]] && rmdir "$d" done fi - for d in \ - "$GOPATH/src/git.curoverse.com/arvados.git/arvados" \ - "$GOPATH/src/git.curoverse.com/arvados.git"; do - [[ -h "$d" ]] && rm "$d" - done ln -vsfT "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" go get -v github.com/kardianos/govendor cd "$GOPATH/src/git.curoverse.com/arvados.git" @@ -712,8 +710,6 @@ retry() { } do_test() { - check_arvados_config "$1" - case "${1}" in apps/workbench_units | apps/workbench_functionals | apps/workbench_integration) suite=apps/workbench @@ -733,12 +729,16 @@ do_test() { case "${1}" in services/api) stop_services + check_arvados_config "$1" ;; gofmt | govendor | doc | lib/cli | lib/cloud/azure | lib/cloud/ec2 | lib/cloud/cloudtest | lib/cmd | lib/dispatchcloud/ssh_executor | lib/dispatchcloud/worker) + check_arvados_config "$1" # don't care whether services are running ;; *) + check_arvados_config "$1" if ! start_services; then + checkexit 1 "$1 tests" title "test $1 -- failed to start services" return 1 fi @@ -830,16 +830,17 @@ check_arvados_config() { install_env fi . "$VENVDIR/bin/activate" + cd "$WORKSPACE" eval $(python sdk/python/tests/run_test_server.py setup_config) deactivate fi } do_install() { - check_arvados_config "$1" if [[ -n "${skip[install]}" || ( -n "${only_install}" && "${only_install}" != "${1}" && "${only_install}" != "${2}" ) ]]; then return 0 fi + check_arvados_config "$1" retry do_install_once ${@} }