From: Zac Medico Date: Tue, 25 Oct 2011 19:52:40 +0000 (-0700) Subject: runtests.sh: fix arguments pass-through X-Git-Tag: v2.2.0_alpha72~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc0b5765fc8ef4b1bb0974bd8cd6cf22df2675e2;p=portage.git runtests.sh: fix arguments pass-through --- 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