Remove run-tests.sh
I'm the only one who was using it. Remove now that pytest is what we call.
This commit is contained in:
parent
d0aaf1bceb
commit
67bbabcdea
@ -12,7 +12,6 @@ include Lib/fontTools/ttLib/tables/table_API_readme.txt
|
||||
include *requirements.txt
|
||||
include tox.ini
|
||||
include mypy.ini
|
||||
include run-tests.sh
|
||||
|
||||
recursive-include Lib/fontTools py.typed
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ uninstall:
|
||||
pip uninstall --yes fonttools
|
||||
|
||||
check: all
|
||||
./run-tests.sh
|
||||
pytest
|
||||
|
||||
clean:
|
||||
./setup.py clean --all
|
||||
|
28
run-tests.sh
28
run-tests.sh
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# exit if any subcommand return non-zero status
|
||||
set -e
|
||||
|
||||
# Choose python version
|
||||
if test "x$1" = x-3; then
|
||||
PYTHON=py3
|
||||
shift
|
||||
elif test "x$1" = x-2; then
|
||||
PYTHON=py2
|
||||
shift
|
||||
fi
|
||||
test "x$PYTHON" = x && PYTHON=py
|
||||
|
||||
# Find tests
|
||||
FILTERS=
|
||||
for arg in "$@"; do
|
||||
test "x$FILTERS" != x && FILTERS="$FILTERS or "
|
||||
FILTERS="$FILTERS$arg"
|
||||
done
|
||||
|
||||
# Run tests
|
||||
if [ -z "$FILTERS" ]; then
|
||||
tox --develop -e $PYTHON
|
||||
else
|
||||
tox --develop -e $PYTHON -- -k "$FILTERS"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user