Update Python package test procedure.
authorBrett Smith <brett@curoverse.com>
Fri, 18 Jul 2014 13:27:54 +0000 (09:27 -0400)
committerBrett Smith <brett@curoverse.com>
Fri, 18 Jul 2014 13:30:30 +0000 (09:30 -0400)
Refs #3252 simplifies the way we express Python package dependencies.
This lets us invoke tests directly from setup.py, so do that.

jenkins/run-tests.sh

index 52fee76fc64d197b40f6174c39b42b109742fdc1..80a551ac808371a6085fbdb1c4ecbcfcecbb3e9a 100755 (executable)
@@ -103,7 +103,7 @@ fi
 
 title "API server tests complete"
 
-# Keep 
+# Keep
 title "Starting Keep tests"
 cd "$WORKSPACE"
 cd services/keep/src/keep
@@ -150,9 +150,8 @@ cd "$WORKSPACE"
 cd sdk/python
 
 VENVDIR=$(mktemp -d)
-virtualenv --setuptools --system-site-packages "$VENVDIR"
-"$VENVDIR/bin/pip" install -e .
-GOPATH="$HOME/gocode" "$VENVDIR/bin/python" -m unittest discover tests
+virtualenv --setuptools "$VENVDIR"
+GOPATH="$HOME/gocode" "$VENVDIR/bin/python" setup.py test
 
 ECODE=$?
 
@@ -175,8 +174,7 @@ cd "$WORKSPACE"
 cd services/fuse
 
 # We reuse $VENVDIR from the Python SDK tests above
-"$VENVDIR/bin/pip" install -e .
-GOPATH="$HOME/gocode" "$VENVDIR/bin/python" -m unittest discover tests
+GOPATH="$HOME/gocode" "$VENVDIR/bin/python" setup.py test
 
 ECODE=$?