From: Zac Medico Date: Tue, 25 Oct 2011 06:42:51 +0000 (-0700) Subject: runtests.sh: add --python-versions option X-Git-Tag: v2.2.0_alpha72~82 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b05a67bade02272d00e8adac3aa9f32e03d2da1f;p=portage.git runtests.sh: add --python-versions option --- diff --git a/runtests.sh b/runtests.sh index d55860af0..31bbaf834 100755 --- a/runtests.sh +++ b/runtests.sh @@ -27,6 +27,19 @@ interrupted() { trap interrupted SIGINT +while [[ -n $1 ]] ; do + case "$1" in + --python-versions=*) + PYTHON_VERSIONS=${1#--python-versions=} + ;; + --python-versions) + shift + PYTHON_VERSIONS=$1 + ;; + esac + shift +done + exit_status="0" for version in ${PYTHON_VERSIONS}; do if [[ -x /usr/bin/python${version} ]]; then