| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Wrapper script around run_remote_tests.sh that knows how to find | 7 # Wrapper script around run_remote_tests.sh that knows how to find |
| 8 # device test cells. | 8 # device test cells. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 run_remote_args=${FLAGS_args} | 56 run_remote_args=${FLAGS_args} |
| 57 | 57 |
| 58 append_flag () { | 58 append_flag () { |
| 59 local delim='' | 59 local delim='' |
| 60 [ -n "${run_remote_flags}" ] && delim=' ' | 60 [ -n "${run_remote_flags}" ] && delim=' ' |
| 61 run_remote_flags="${run_remote_flags}${delim}$*" | 61 run_remote_flags="${run_remote_flags}${delim}$*" |
| 62 } | 62 } |
| 63 | 63 |
| 64 append_arg () { | 64 append_arg () { |
| 65 local delim='' | 65 local delim='' |
| 66 [ -n "${run_remote_args}" ] && delim=',' | 66 [ -n "${run_remote_args}" ] && delim=' ' |
| 67 run_remote_args="${run_remote_args}${delim}$*" | 67 run_remote_args="${run_remote_args}${delim}$*" |
| 68 } | 68 } |
| 69 | 69 |
| 70 if [ -n "${FLAGS_board}" ]; then | 70 if [ -n "${FLAGS_board}" ]; then |
| 71 append_flag --board "'${FLAGS_board}'" | 71 append_flag --board "'${FLAGS_board}'" |
| 72 fi | 72 fi |
| 73 | 73 |
| 74 if [ -n "${FLAGS_chroot}" ]; then | 74 if [ -n "${FLAGS_chroot}" ]; then |
| 75 append_flag --chroot "'${FLAGS_chroot}'" | 75 append_flag --chroot "'${FLAGS_chroot}'" |
| 76 fi | 76 fi |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 exit 1 | 138 exit 1 |
| 139 fi | 139 fi |
| 140 | 140 |
| 141 set $ret | 141 set $ret |
| 142 remote=$1 | 142 remote=$1 |
| 143 shift | 143 shift |
| 144 for arg in $*; do | 144 for arg in $*; do |
| 145 append_arg $arg | 145 append_arg $arg |
| 146 done | 146 done |
| 147 | 147 |
| 148 eval "exec "${script_root}/run_remote_tests.sh" \ | 148 eval "exec ${script_root}/run_remote_tests.sh \ |
| 149 -a "${run_remote_args}" --remote=${remote} $run_remote_flags $FLAGS_ARGV" | 149 --args=\"${run_remote_args}\" --remote=${remote} $run_remote_flags \ |
| 150 $FLAGS_ARGV" |
| OLD | NEW |