mirror of
https://github.com/powerline/powerline.git
synced 2025-07-22 21:35:14 +02:00
Use script to test whether python zsh uses matches $PYTHON
This commit is contained in:
parent
0f86bbf819
commit
d5361337c1
@ -421,7 +421,7 @@ fi
|
|||||||
|
|
||||||
if ( test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xzsh" ) \
|
if ( test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xzsh" ) \
|
||||||
&& ( test "x${ONLY_TEST_TYPE}" = "x" || test "x${ONLY_TEST_TYPE}" = "xzpython" ) \
|
&& ( test "x${ONLY_TEST_TYPE}" = "x" || test "x${ONLY_TEST_TYPE}" = "xzpython" ) \
|
||||||
&& zsh -f -c 'zmodload libzpython' 2>/dev/null; then
|
&& zsh tests/test_shells/zsh_test_script.zsh 2>/dev/null; then
|
||||||
echo "> zpython"
|
echo "> zpython"
|
||||||
if ! run_test zpython zpython zsh -f -i ; then
|
if ! run_test zpython zpython zsh -f -i ; then
|
||||||
FAILED=1
|
FAILED=1
|
||||||
|
9
tests/test_shells/zsh_test_script.zsh
Normal file
9
tests/test_shells/zsh_test_script.zsh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
set -e
|
||||||
|
. tests/bot-ci/scripts/common/main.sh
|
||||||
|
zmodload zpython
|
||||||
|
zpython 'import platform'
|
||||||
|
zpython 'zsh.setvalue("ZSH_PYTHON_VERSION", platform.python_version())'
|
||||||
|
zpython 'zsh.setvalue("ZSH_PYTHON_IMPLEMENTATION", platform.python_implementation())'
|
||||||
|
|
||||||
|
[[ $ZSH_PYTHON_IMPLEMENTATION = $PYTHON_IMPLEMENTATION ]]
|
||||||
|
[[ $ZSH_PYTHON_VERSION = $PYTHON_VERSION ]]
|
Loading…
x
Reference in New Issue
Block a user