| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 control_file="${control_file:${#chrome_autotests}+1}" | 268 control_file="${control_file:${#chrome_autotests}+1}" |
| 269 echo_color "yellow" ">>> Running chrome autotest " ${control_file} | 269 echo_color "yellow" ">>> Running chrome autotest " ${control_file} |
| 270 fi | 270 fi |
| 271 if [[ -n "${FLAGS_args}" ]]; then | 271 if [[ -n "${FLAGS_args}" ]]; then |
| 272 passthrough_args="--args=${FLAGS_args}" | 272 passthrough_args="--args=${FLAGS_args}" |
| 273 fi | 273 fi |
| 274 | 274 |
| 275 ${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \ | 275 ${enter_chroot} ${autotest} --board "${FLAGS_board}" -m "${FLAGS_remote}" \ |
| 276 --ssh-port ${FLAGS_ssh_port} \ | 276 --ssh-port ${FLAGS_ssh_port} \ |
| 277 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ | 277 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ |
| 278 "${passthrough_args}" | 278 "${passthrough_args}" >&2 |
| 279 done | 279 done |
| 280 | 280 |
| 281 echo "" | 281 echo "" |
| 282 echo_color "yellow" ">>> Test results:" | 282 echo_color "yellow" ">>> Test results:" |
| 283 ./generate_test_report "${TMP}" --strip="${TMP}/" | 283 ./generate_test_report "${TMP}" --strip="${TMP}/" |
| 284 |
| 285 print_time_elapsed |
| 284 } | 286 } |
| 285 | 287 |
| 286 main "$@" | 288 main "$@" |
| OLD | NEW |