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 # Script to run client or server tests on a live remote image. | 7 # Script to run client or server tests on a live remote image. |
8 | 8 |
9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 local args=() | 262 local args=() |
263 if [[ -n "${FLAGS_args}" ]]; then | 263 if [[ -n "${FLAGS_args}" ]]; then |
264 local with_spaces="" | 264 local with_spaces="" |
265 with_spaces=${FLAGS_args//,/ } | 265 with_spaces=${FLAGS_args//,/ } |
266 args=("-a" "${with_spaces}") | 266 args=("-a" "${with_spaces}") |
267 fi | 267 fi |
268 | 268 |
269 RAN_ANY_TESTS=${FLAGS_TRUE} | 269 RAN_ANY_TESTS=${FLAGS_TRUE} |
270 | 270 |
271 # HACK: Temporary hack for cros-workon conversion | 271 # HACK: Temporary hack for cros-workon conversion |
272 [[ -n "${WORKON_AUTOTEST}" ]] && WORKON_SUFFIX=_workon | 272 [[ -n "${CROS_WORKON_SRCROOT}" ]] && WORKON_SUFFIX=_workon |
273 | 273 |
274 local enter_chroot="" | 274 local enter_chroot="" |
275 local autotest="${GCLIENT_ROOT}/src/scripts/autotest${WORKON_SUFFIX}" | 275 local autotest="${GCLIENT_ROOT}/src/scripts/autotest${WORKON_SUFFIX}" |
276 if [[ ${INSIDE_CHROOT} -eq 0 ]]; then | 276 if [[ ${INSIDE_CHROOT} -eq 0 ]]; then |
277 enter_chroot="./enter_chroot.sh --chroot ${FLAGS_chroot} --" | 277 enter_chroot="./enter_chroot.sh --chroot ${FLAGS_chroot} --" |
278 autotest="./autotest${WORKON_SUFFIX}" | 278 autotest="./autotest${WORKON_SUFFIX}" |
279 fi | 279 fi |
280 | 280 |
281 ${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \ | 281 ${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \ |
282 --ssh-port ${FLAGS_ssh_port} \ | 282 --ssh-port ${FLAGS_ssh_port} \ |
(...skipping 13 matching lines...) Expand all Loading... |
296 fi | 296 fi |
297 else | 297 else |
298 echo_color "red" ">>> FAILED: ${control_file}" | 298 echo_color "red" ">>> FAILED: ${control_file}" |
299 cat "${test_status}" | 299 cat "${test_status}" |
300 fi | 300 fi |
301 local end_time=$(date '+%s') | 301 local end_time=$(date '+%s') |
302 done | 302 done |
303 } | 303 } |
304 | 304 |
305 main $@ | 305 main $@ |
OLD | NEW |