run-tests.sh uses virtualenv's activate script.
authorBrett Smith <brett@curoverse.com>
Tue, 23 Sep 2014 14:56:57 +0000 (10:56 -0400)
committerBrett Smith <brett@curoverse.com>
Tue, 23 Sep 2014 14:58:23 +0000 (10:58 -0400)
The activate script takes care of additional isolation steps, like
clearing $PYTHONHOME and rehashing $PATH.  Prefer that over simply
setting $PATH ourselves.  No issue #.

jenkins/run-tests.sh

index 45cdadcb36f6a77816000d669d12728a179dde46..2c25bb753842e0907670a17f979ff0220e6b07e9 100755 (executable)
@@ -181,7 +181,7 @@ ln -sfn "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" \
     || fatal "symlink failed"
 
 virtualenv --setuptools "$VENVDIR" || fatal "virtualenv $VENVDIR failed"
-PATH="$VENVDIR/bin:$PATH"
+. "$VENVDIR/bin/activate"
 
 checkexit() {
     if [[ "$?" != "0" ]]; then