Skip to content

Commit 995fe81

Browse files
committed
feat: make runtox script more useful for local dev
1 parent 315d024 commit 995fe81

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/runtox.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/sh
2-
pyversion="$(echo py$TRAVIS_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
3-
exec tox -e $(tox -l | grep $pyversion | tr '\n' ',')
2+
if [ -z "$1" ]; then
3+
searchstring="$(echo py$TRAVIS_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
4+
else
5+
searchstring="$1"
6+
fi
7+
8+
exec tox -e $(tox -l | grep $searchstring | tr '\n' ',')

0 commit comments

Comments
 (0)