X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/2b9864be33a42c3f9f612fcb3cf51e46c040a354..121e7a814e34136e77191f2eb1951ad27a623453:/jenkins/run-tests.sh diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 1a699a8..38290f7 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -383,7 +383,7 @@ fi # Needed for run_test_server.py which is used by certain (non-Python) tests. pip freeze 2>/dev/null | egrep ^PyYAML= \ - || pip install PyYAML \ + || pip install PyYAML >/dev/null \ || fatal "pip install PyYAML failed" # If Python 3 is available, set up its virtualenv in $VENV3DIR. @@ -609,8 +609,9 @@ install_apiserver() { # Clear out any lingering postgresql connections to the test # database, so that we can drop it. This assumes the current user # is a postgresql superuser. - test_database=$(python -c "import yaml; print yaml.load(file('config/database.yml'))['test']['database']") - psql "$test_database" -c "SELECT pg_terminate_backend (pg_stat_activity.procpid::int) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$test_database';" 2>/dev/null + cd "$WORKSPACE/services/api" \ + && test_database=$(python -c "import yaml; print yaml.load(file('config/database.yml'))['test']['database']") \ + && psql "$test_database" -c "SELECT pg_terminate_backend (pg_stat_activity.procpid::int) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$test_database';" 2>/dev/null cd "$WORKSPACE/services/api" \ && RAILS_ENV=test bundle exec rake db:drop \ @@ -648,7 +649,7 @@ test_doclinkchecker() { ARVADOS_API_HOST=qr1hi.arvadosapi.com # Make sure python-epydoc is installed or the next line won't # do much good! - PYTHONPATH=$WORKSPACE/sdk/python/ bundle exec rake linkchecker baseurl=file://$WORKSPACE/doc/.site/ arvados_workbench_host=workbench.$ARVADOS_API_HOST arvados_api_host=$ARVADOS_API_HOST + PYTHONPATH=$WORKSPACE/sdk/python/ bundle exec rake linkchecker baseurl=file://$WORKSPACE/doc/.site/ arvados_workbench_host=https://workbench.$ARVADOS_API_HOST arvados_api_host=$ARVADOS_API_HOST ) } do_test doc doclinkchecker