]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: pip must not log in $HOME/.pip
authorLoic Dachary <ldachary@redhat.com>
Fri, 8 May 2015 06:57:24 +0000 (08:57 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 8 May 2015 06:59:34 +0000 (08:59 +0200)
Because it may not have permission to when running in a container and
scripts run from source are not expected to modify anything outside of
the source tree anyway.

Signed-off-by: Loic Dachary <loic@dachary.org>
install-deps.sh
src/ceph-detect-init/run-tox.sh
src/test/ceph-disk.sh
src/test/run-cli-tests

index dbc720b8772bea2ead7d78bc490794fd19b0bba4..3710707d5732b738f74d8742a7663f577bfa977f 100755 (executable)
@@ -92,7 +92,7 @@ for interpreter in python2.7 python3 ; do
     rm -fr install-deps
     virtualenv --python $interpreter install-deps
     . install-deps/bin/activate
-    pip install wheel
+    pip --log install-deps/log.txt install wheel
     find . -name tox.ini | while read ini ; do
         (
             cd $(dirname $ini)
@@ -100,7 +100,7 @@ for interpreter in python2.7 python3 ; do
             if test "$require" ; then
                 # although pip comes with virtualenv, having a recent version
                 # of pip matters when it comes to using wheel packages
-                pip wheel $require 'distribute >= 0.7' 'pip >= 6.1'
+                pip --log install-deps/log.txt wheel $require 'distribute >= 0.7' 'pip >= 6.1'
             fi
         )
     done
index 3d7216cc8897c0b2cf6c99e9064c917e6b855a2f..2f0e62b7757f7093afa2c39217a685ab42224df1 100755 (executable)
@@ -24,10 +24,10 @@ virtualenv make-check
 . make-check/bin/activate
 # older versions of pip will not install wrap_console scripts
 # when using wheel packages
-pip install --upgrade 'pip >= 6.1'
+pip --log make-check/log.txt install --upgrade 'pip >= 6.1'
 if test -d wheelhouse ; then
     export NO_INDEX=--no-index
 fi
-pip install $NO_INDEX --use-wheel --find-links=file://$(pwd)/wheelhouse --upgrade distribute
-pip install $NO_INDEX --use-wheel --find-links=file://$(pwd)/wheelhouse 'tox >=1.9' 
+pip --log make-check/log.txt install $NO_INDEX --use-wheel --find-links=file://$(pwd)/wheelhouse --upgrade distribute
+pip --log make-check/log.txt install $NO_INDEX --use-wheel --find-links=file://$(pwd)/wheelhouse 'tox >=1.9' 
 tox 2>&1 | grep -v InterpreterNotFound
index dca322f9b070820ccd0079a5750a7655150c2418..d6cceb38a0e61af955725da85dfb4af8c8a1c045 100755 (executable)
@@ -27,7 +27,7 @@ virtualenv virtualenv-$DIR
     if test -d ceph-detect-init/wheelhouse ; then
         wheelhouse="--no-index --use-wheel --find-links=ceph-detect-init/wheelhouse"
     fi
-    pip install $wheelhouse --editable ceph-detect-init
+    pip --log virtualenv-$DIR/log.txt install $wheelhouse --editable ceph-detect-init
 )
 OSD_DATA=$DIR/osd
 MON_ID=a
index e29ad2086aecd38f412a48afbd62fd213a1dd36a..48fc90e61a281317c7079b6986977a71b8c75194 100755 (executable)
@@ -30,7 +30,7 @@ if [ ! -e "$CRAM_BIN" ]; then
     # patched cram to support that. See upstream ticket at
     # https://bitbucket.org/brodie/cram/issue/9/allow-read-only-directories-for-t
     # -- tv@inktank.com
-    virtualenv "$VENV" && $VENV/bin/pip install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz"
+    virtualenv "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz"
 fi
 
 SRCDIR_ABS="$(readlink -f "$SRCDIR")"