]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-cli-tests: Check that virtualenv is found.
authorTommi Virtanen <tv@inktank.com>
Thu, 16 Aug 2012 23:35:30 +0000 (16:35 -0700)
committerTommi Virtanen <tv@inktank.com>
Thu, 16 Aug 2012 23:37:30 +0000 (16:37 -0700)
Commit 343cc792e847ca8901f6c08e41799a2fbbd2ca92 switched us from pip
-E to virtualenv, to keep up with the Python ecosystem, but left in
this old check for existence of "pip" as a command. We don't strictly
need that; what we need is a "virtualenv" command. PIP will be
available inside the virtualenv, by the time we get around to running
it. Check for virtualenv instead.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/test/run-cli-tests

index 1218b8b3a6a8297f320c402243807247cfed4eb5..d8195d4a8b82d2cca377f2a0ae6eaf61d4744f23 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-if ! command -v pip >/dev/null; then
-    echo "$0: PIP not installed, skipping python-using tests." 1>&2
+if ! command -v virtualenv >/dev/null; then
+    echo "$0: virtualenv not installed, skipping python-using tests." 1>&2
     exit 1
 fi
 
@@ -26,7 +26,6 @@ esac
 VENV="$BUILDDIR/virtualenv"
 CRAM_BIN="$VENV/bin/cram"
 if [ ! -e "$CRAM_BIN" ]; then
-#    pip -E "$VENV" install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz"
     virtualenv "$VENV" && $VENV/bin/pip install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz"
 fi