X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f15370d0fe86a537f9b4622109031fe1401259ef..8afc85aabb9563da4de17b0b5f7d4fe574e9ad8d:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 6e4ea434dc..8a8f5b6d24 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -489,6 +489,8 @@ setup_virtualenv() { local venvdest="$1"; shift if ! [[ -e "$venvdest/bin/activate" ]] || ! [[ -e "$venvdest/bin/pip" ]]; then virtualenv --setuptools "$@" "$venvdest" || fatal "virtualenv $venvdest failed" + elif [[ -n "$short" ]]; then + return fi if [[ $("$venvdest/bin/python" --version 2>&1) =~ \ 3\.[012]\. ]]; then # pip 8.0.0 dropped support for python 3.2, e.g., debian wheezy @@ -542,8 +544,7 @@ setup_virtualenv "$VENVDIR" --python python2.7 . "$VENVDIR/bin/activate" # Needed for run_test_server.py which is used by certain (non-Python) tests. -pip freeze 2>/dev/null | egrep ^PyYAML= \ - || pip install --no-cache-dir PyYAML >/dev/null \ +pip install --no-cache-dir PyYAML \ || fatal "pip install PyYAML failed" # Preinstall libcloud if using a fork; otherwise nodemanager "pip @@ -852,7 +853,7 @@ install_apiserver() { # is a postgresql superuser. 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 + && psql "$test_database" -c "SELECT pg_terminate_backend (pg_stat_activity.pid::int) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$test_database';" 2>/dev/null mkdir -p "$WORKSPACE/services/api/tmp/pids"