mirror of
https://github.com/powerline/powerline.git
synced 2025-07-16 18:34:57 +02:00
In place of running ipython executable run IPython module
This should fix the problem with using wrong ipython for tests.
This commit is contained in:
parent
b2ecb8ca84
commit
0f86bbf819
@ -215,6 +215,8 @@ done
|
|||||||
|
|
||||||
ln -s python tests/shell/path/pdb
|
ln -s python tests/shell/path/pdb
|
||||||
PDB_PYTHON=pdb
|
PDB_PYTHON=pdb
|
||||||
|
ln -s python tests/shell/path/ipython
|
||||||
|
IPYTHON_PYTHON=ipython
|
||||||
|
|
||||||
if test -z "$POWERLINE_RC_EXE" ; then
|
if test -z "$POWERLINE_RC_EXE" ; then
|
||||||
if which rc-status >/dev/null ; then
|
if which rc-status >/dev/null ; then
|
||||||
@ -230,7 +232,7 @@ if which "$POWERLINE_RC_EXE" >/dev/null ; then
|
|||||||
ln -s "$(which $POWERLINE_RC_EXE)" tests/shell/path/rc
|
ln -s "$(which $POWERLINE_RC_EXE)" tests/shell/path/rc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for exe in bash zsh busybox fish tcsh mksh dash ipython ; do
|
for exe in bash zsh busybox fish tcsh mksh dash ; do
|
||||||
if which $exe >/dev/null ; then
|
if which $exe >/dev/null ; then
|
||||||
if test "$exe" = "fish" ; then
|
if test "$exe" = "fish" ; then
|
||||||
fish_version="$(fish --version 2>&1)"
|
fish_version="$(fish --version 2>&1)"
|
||||||
@ -451,12 +453,12 @@ if test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xpdb" ; 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
|
if "${PYTHON}" -c "try: import IPython${NL}except ImportError: raise SystemExit(1)" ; then
|
||||||
# Define some overrides which should be ignored by IPython.
|
# Define some overrides which should be ignored by IPython.
|
||||||
export POWERLINE_CONFIG_OVERRIDES='common.term_escape_style=fbterm'
|
export POWERLINE_CONFIG_OVERRIDES='common.term_escape_style=fbterm'
|
||||||
export POWERLINE_THEME_OVERRIDES='in.segments.left=[]'
|
export POWERLINE_THEME_OVERRIDES='in.segments.left=[]'
|
||||||
echo "> $(which ipython)"
|
echo "> $(which ipython)"
|
||||||
if ! run_test ipython ipython ipython ; then
|
if ! run_test ipython ipython ${IPYTHON_PYTHON} -mIPython ; then
|
||||||
FAILED=1
|
FAILED=1
|
||||||
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}T ipython"
|
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}T ipython"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user