Do not try to test ipython if it is not available

This commit is contained in:
ZyX 2014-08-23 16:24:16 +04:00
parent 1b56179676
commit 20e9575c17

View File

@ -349,11 +349,13 @@ if ! test -z "$(cat tests/shell/daemon_log_2)" ; then
fi fi
if test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xipython" ; then if test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xipython" ; then
if which ipython >/dev/null ; then
echo "> $(which ipython)" echo "> $(which ipython)"
if ! run_test ipython ipython ipython ; then if ! run_test ipython ipython ipython ; then
FAILED=1 FAILED=1
fi fi
fi fi
fi
test $FAILED -eq 0 && rm -r tests/shell test $FAILED -eq 0 && rm -r tests/shell
exit $FAILED exit $FAILED