Process all arguments to run-tests.sh as filters
This commit is contained in:
parent
fc7d3b52ed
commit
749eb3de80
@ -17,8 +17,14 @@ export PYTHONPATH
|
|||||||
|
|
||||||
# Find tests
|
# Find tests
|
||||||
FILTER=$1
|
FILTER=$1
|
||||||
|
shift
|
||||||
|
while test "x$#" != x0; do
|
||||||
|
FILTER="$FILTER|$1"
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
test "x$FILTER" = x && FILTER=.
|
test "x$FILTER" = x && FILTER=.
|
||||||
TESTS=`grep -r --include='*.py' -l -e doctest -e unittest * | grep "$FILTER"`
|
TESTS=`grep -r --include='*.py' -l -e doctest -e unittest * | grep -E "$FILTER"`
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
for test in $TESTS; do
|
for test in $TESTS; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user