From 20e9575c176b4520d1cfd7e87a9a92386e09c190 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 23 Aug 2014 16:24:16 +0400 Subject: [PATCH] Do not try to test ipython if it is not available --- tests/test_shells/test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_shells/test.sh b/tests/test_shells/test.sh index 64f9146f..9104fa99 100755 --- a/tests/test_shells/test.sh +++ b/tests/test_shells/test.sh @@ -349,9 +349,11 @@ if ! test -z "$(cat tests/shell/daemon_log_2)" ; then fi if test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xipython" ; then - echo "> $(which ipython)" - if ! run_test ipython ipython ipython ; then - FAILED=1 + if which ipython >/dev/null ; then + echo "> $(which ipython)" + if ! run_test ipython ipython ipython ; then + FAILED=1 + fi fi fi