From 67bbabcdea73f1ed62da25a5b735474389c9e857 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Mar 2021 08:05:05 -0700 Subject: [PATCH] Remove run-tests.sh I'm the only one who was using it. Remove now that pytest is what we call. --- MANIFEST.in | 1 - Makefile | 2 +- run-tests.sh | 28 ---------------------------- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100755 run-tests.sh diff --git a/MANIFEST.in b/MANIFEST.in index 31a9c256b..8e2bcd1d1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/Makefile b/Makefile index b2e3d96b7..21cad6cd2 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ uninstall: pip uninstall --yes fonttools check: all - ./run-tests.sh + pytest clean: ./setup.py clean --all diff --git a/run-tests.sh b/run-tests.sh deleted file mode 100755 index f10c1b01d..000000000 --- a/run-tests.sh +++ /dev/null @@ -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