diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-05 10:31:32 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-01-05 14:08:58 -0500 |
commit | 752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911 (patch) | |
tree | b82813afda4bdb1a7fc8137b9a481369e1b19b9f /runtests.sh | |
parent | document release process (diff) | |
download | portage-752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911.tar.gz portage-752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911.tar.bz2 portage-752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911.zip |
runtests: add a "supported" shortcut
This keeps the list of supported versions in one place so people can do:
./runtests.sh --python-versions=supported
No need to hardcode the list of python versions in multiple places.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh index 010a7bf6f..3006be55e 100755 --- a/runtests.sh +++ b/runtests.sh @@ -2,6 +2,8 @@ # Copyright 2010-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# These are the versions we care about. The rest are just "nice to have". +PYTHON_SUPPORTED_VERSIONS="2.6 2.7 3.2 3.3" PYTHON_VERSIONS="2.6 2.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 3.1 3.2 3.3 3.4" # has to be run from portage root dir @@ -44,6 +46,9 @@ while [ $# -gt 0 ] ; do esac shift done +if [[ ${PYTHON_VERSIONS} == "supported" ]] ; then + PYTHON_VERSIONS=${PYTHON_SUPPORTED_VERSIONS} +fi set -- "${unused_args[@]}" |