From 95e2db7e479028e4e26e627c157bc9f389f88482 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 19 Apr 2015 12:04:47 -0700 Subject: [PATCH] Another try to fix TravisCI Apparently the problem was with the first shift, not with the loop: https://github.com/behdad/fonttools/commit/749eb3de80e74392c18ff3d5dca187072fec17d9#commitcomment-10792844 --- run-tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index f080032e2..2803c33cb 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -16,13 +16,13 @@ PYTHONPATH=".:$PYTHONPATH" export PYTHONPATH # Find tests -FILTER=$1 -shift +FILTER= for arg in "$@"; do - FILTER="$FILTER|$arg" + test "x$FILTER" != x && FILTER="$FILTER|" + FILTER="$FILTER$arg" done -test "x$FILTER" = x && FILTER=. +test "x$FILTER" = "x" && FILTER=. TESTS=`grep -r --include='*.py' -l -e doctest -e unittest * | grep -E "$FILTER"` ret=0