5766: Remove "remove dependencies" step. Detect existing PyYAML faster. more-sanity-check-less-download
authorTom Clegg <tom@curoverse.com>
Thu, 21 May 2015 12:57:50 +0000 (08:57 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 21 May 2015 12:57:50 +0000 (08:57 -0400)
jenkins/run-tests.sh

index 150247cddb9d597e561e46235dfab3ba50ee29a7..fd0023c972da5174d181597c19177d7a5d20465f 100755 (executable)
@@ -368,10 +368,6 @@ ln -sfn "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" \
 virtualenv --setuptools "$VENVDIR" || fatal "virtualenv $VENVDIR failed"
 . "$VENVDIR/bin/activate"
 
-# When re-using $VENVDIR, upgrade any packages (except arvados) that are
-# already installed
-pip install --quiet --upgrade `pip freeze | grep -v arvados | cut -f1 -d=`
-
 # Note: this must be the last time we change PATH, otherwise rvm will
 # whine a lot.
 setup_ruby_environment
@@ -384,8 +380,9 @@ then
 fi
 
 # Needed for run_test_server.py which is used by certain (non-Python) tests.
-echo "pip install -q PyYAML"
-pip install --quiet PyYAML || fatal "pip install PyYAML failed"
+pip freeze 2>/dev/null | egrep ^PyYAML= \
+    || pip install PyYAML \
+    || fatal "pip install PyYAML failed"
 
 # If Python 3 is available, set up its virtualenv in $VENV3DIR.
 # Otherwise, skip dependent tests.