parent
f547e8b85f
commit
84dfac6f8e
|
@ -1,19 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
: ${PYTHON:=python}
|
: ${PYTHON:=python}
|
||||||
FAILED=0
|
FAILED=0
|
||||||
if ${PYTHON} -c 'import sys; sys.exit(1 * (sys.version_info >= (2, 7)))' ; then
|
export PYTHONPATH="${PYTHONPATH}:`realpath .`"
|
||||||
# Python 2.6
|
for file in tests/test_*.py ; do
|
||||||
export PYTHONPATH="${PYTHONPATH}:`realpath .`"
|
if ! ${PYTHON} $file ; then
|
||||||
for file in tests/test_*.py ; do
|
|
||||||
if ! ${PYTHON} $file ; then
|
|
||||||
FAILED=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
|
||||||
if ! ${PYTHON} setup.py test ; then
|
|
||||||
FAILED=1
|
FAILED=1
|
||||||
fi
|
fi
|
||||||
fi
|
done
|
||||||
if ! ${PYTHON} scripts/powerline-lint ; then
|
if ! ${PYTHON} scripts/powerline-lint ; then
|
||||||
FAILED=1
|
FAILED=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue