summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorLin Hua Cheng <lin-hua.cheng@hp.com>2013-04-19 03:20:57 -0700
committerLin Hua Cheng <lin-hua.cheng@hp.com>2013-04-19 03:20:57 -0700
commit44f2275c69c2b4f3637d888f82ff0b5cc232e4bc (patch)
tree726dacb0f90d7a14f689af3dab9459f7671a173a /run_tests.sh
parente4541a6175b91270abcfd7bc893eecac8a32aae9 (diff)
downloadtuskar-ui-44f2275c69c2b4f3637d888f82ff0b5cc232e4bc.tar.gz
Fix regression on running manage command.
Options on the manage command (./run_tests.sh) is getting shuffled, this is due to the logic how testopts and testargs are extracted. For example, the command "./run_tests.sh -m startdashboard test --target test" is being translated into "startdashboard --target test test". The options after the "-m" should be passed as is as argument to the manage command. Fixes bug 1164505. Change-Id: Id1a0699050390014487459757b3bda9c7fcca405
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 6dac0d35..f2e7e517 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -80,6 +80,12 @@ manage=0
[ "$JOB_NAME" ] || JOB_NAME="default"
function process_option {
+ # If running manage command, treat the rest of options as arguments.
+ if [ $manage -eq 1 ]; then
+ testargs="$testargs $1"
+ return 0
+ fi
+
case "$1" in
-h|--help) usage;;
-V|--virtual-env) always_venv=1; never_venv=0;;