diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-25 12:52:40 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-25 12:52:40 -0700 |
commit | cc0b5765fc8ef4b1bb0974bd8cd6cf22df2675e2 (patch) | |
tree | 4ade60fca76a958b608f13c59a7cbf6dd3f71468 | |
parent | 0229926ec76333b5a197e5fba3beffe7691688b3 (diff) | |
download | portage-cc0b5765fc8ef4b1bb0974bd8cd6cf22df2675e2.tar.gz portage-cc0b5765fc8ef4b1bb0974bd8cd6cf22df2675e2.tar.bz2 portage-cc0b5765fc8ef4b1bb0974bd8cd6cf22df2675e2.zip |
runtests.sh: fix arguments pass-through
-rwxr-xr-x | runtests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh index 31bbaf834..b7313b79b 100755 --- a/runtests.sh +++ b/runtests.sh @@ -27,6 +27,8 @@ interrupted() { trap interrupted SIGINT +unused_args=() + while [[ -n $1 ]] ; do case "$1" in --python-versions=*) @@ -36,10 +38,15 @@ while [[ -n $1 ]] ; do shift PYTHON_VERSIONS=$1 ;; + *) + unused_args[${#unused_args[@]}]=$1 + ;; esac shift done +set -- "${unused_args[@]}" + exit_status="0" for version in ${PYTHON_VERSIONS}; do if [[ -x /usr/bin/python${version} ]]; then |