Another try to fix TravisCI

Apparently the problem was with the first shift, not with the loop:
749eb3de80 (commitcomment-10792844)
This commit is contained in:
Behdad Esfahbod 2015-04-19 12:04:47 -07:00
parent ecbe88cf17
commit 95e2db7e47

View File

@ -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