summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-24 23:42:51 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-24 23:42:51 -0700
commitb05a67bade02272d00e8adac3aa9f32e03d2da1f (patch)
treecee0eb7b75fde6d7577762370ca171b3bd26d740
parent9cee1292597eca5166b5eb6867c825040bd31061 (diff)
downloadportage-b05a67bade02272d00e8adac3aa9f32e03d2da1f.tar.gz
portage-b05a67bade02272d00e8adac3aa9f32e03d2da1f.tar.bz2
portage-b05a67bade02272d00e8adac3aa9f32e03d2da1f.zip
runtests.sh: add --python-versions option
-rwxr-xr-xruntests.sh13
1 files changed, 13 insertions, 0 deletions
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