]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-detect-init: run-tox.sh always succeeds
authorLoic Dachary <ldachary@redhat.com>
Sun, 17 May 2015 19:29:25 +0000 (21:29 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 17 May 2015 19:29:25 +0000 (21:29 +0200)
Because of the | grep, the status of tox is no longer the status of
run-tox.sh and errors are not reported as they should.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-detect-init/run-tox.sh

index 2f0e62b7757f7093afa2c39217a685ab42224df1..206938e28767708557068cfc5ec3384731109fcd 100755 (executable)
@@ -30,4 +30,7 @@ if test -d wheelhouse ; then
 fi
 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
+tox > make-check/tox.out 2>&1 
+status=$?
+grep -v InterpreterNotFound < make-check/tox.out
+exit $status