From ee5eb4972462efaa8e4e98666a41356a7f2cee2f Mon Sep 17 00:00:00 2001 From: Chet Burgess Date: Thu, 14 Feb 2013 17:01:53 +0000 Subject: relocatable roots doesn't handle testr args/opts Previous fix (4c891b9243985bb95d8beff8affa9db470a1c94a) changed how the args are parsed but didn't update the logic for handling testr args/opts. As a result args/opts for testr where not be properly passed. This fixes corrects that oversite and now properly parses those args as well. Change-Id: I418b0478b2a180e497d041fcab25158c52f44bac Fixes: #1116942 --- run_tests.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 1f269fbfe..28aa68a2a 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -33,7 +33,6 @@ function usage { function process_options { i=1 while [ $i -le $# ]; do - FOO=${!i} case "${!i}" in -h|--help) usage;; -V|--virtual-env) always_venv=1; never_venv=0;; @@ -57,8 +56,8 @@ function process_options { (( i++ )) tools_path=${!i} ;; - -*) testropts="$testropts $1";; - *) testrargs="$testrargs $1" + -*) testropts="$testropts ${!i}";; + *) testrargs="$testrargs ${!i}" esac (( i++ )) done -- cgit