summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChet Burgess <cfb@metacloud.com>2013-02-14 17:01:53 +0000
committerChet Burgess <cfb@metacloud.com>2013-02-14 17:06:06 +0000
commitee5eb4972462efaa8e4e98666a41356a7f2cee2f (patch)
treeeeb2e5e24308a50e329a4207a7fd4f94f7d4a757
parent4ffddcfa6385703ce9a02f624999f05b388778e6 (diff)
downloadnova-ee5eb4972462efaa8e4e98666a41356a7f2cee2f.tar.gz
nova-ee5eb4972462efaa8e4e98666a41356a7f2cee2f.tar.xz
nova-ee5eb4972462efaa8e4e98666a41356a7f2cee2f.zip
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
-rwxr-xr-xrun_tests.sh5
1 files 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