X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f0549691efc1536602b641f5c662cd32ce0c58aa..da77af55002ffc7581048f70b17ffc3c46bf86b0:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 14f889ad6e..a46f2ec766 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -96,6 +96,7 @@ services/arv-git-httpd services/crunchstat services/dockercleaner services/fuse +services/fuse:py3 services/health services/keep-web services/keepproxy @@ -226,6 +227,8 @@ sanity_checks() { echo -n 'Python3 pyconfig.h: ' find /usr/include -path '*/python3*/pyconfig.h' | egrep --max-count=1 . \ || fatal "No Python3 pyconfig.h. Try: apt-get install python3-dev" + which netstat \ + || fatal "No netstat. Try: apt-get install net-tools" echo -n 'nginx: ' PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin" nginx -v \ || fatal "No nginx. Try: apt-get install nginx" @@ -669,6 +672,7 @@ install_env() { cd "$GOPATH/src/git.curoverse.com/arvados.git" go get -v -d ... "$GOPATH/bin/govendor" sync + which goimports >/dev/null || go get golang.org/x/tools/cmd/goimports ) || fatal "Go setup failed" setup_virtualenv "$VENVDIR" --python python2.7 @@ -812,7 +816,10 @@ do_test_once() { 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]} + if [[ -e "${3}activate" ]]; then + . "${3}activate" + fi + python setup.py ${short:+--short-tests-only} test ${testargs[$1]} result=$? if [[ ${tries} < 3 && ${result} == 137 ]] then @@ -937,6 +944,7 @@ install_services/login-sync() { } install_services/api() { + stop_services cd "$WORKSPACE/services/api" \ && RAILS_ENV=test bundle_install_trylocal @@ -995,6 +1003,7 @@ pythonstuff=( sdk/cwl:py3 services/dockercleaner:py3 services/fuse + services/fuse:py3 services/nodemanager tools/crunchstat-summary tools/crunchstat-summary:py3