From cc0b5765fc8ef4b1bb0974bd8cd6cf22df2675e2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 25 Oct 2011 12:52:40 -0700 Subject: runtests.sh: fix arguments pass-through --- runtests.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtests.sh') 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 -- cgit v1.2.3-1-g7c22