| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 else | 147 else |
| 148 TMP=$(mktemp -d /tmp/run_remote_tests.XXXX) | 148 TMP=$(mktemp -d /tmp/run_remote_tests.XXXX) |
| 149 fi | 149 fi |
| 150 TMP_INSIDE_CHROOT=${TMP} | 150 TMP_INSIDE_CHROOT=${TMP} |
| 151 fi | 151 fi |
| 152 | 152 |
| 153 trap cleanup EXIT | 153 trap cleanup EXIT |
| 154 | 154 |
| 155 remote_access_init | 155 remote_access_init |
| 156 | 156 |
| 157 # HACK: Temporary hack for cros-workon conversion |
| 158 # In cros-workon, we always use the prepackaged tests, because the locations |
| 159 # where tests come from are possibly infinite. |
| 160 [[ -n "${CROS_WORKON_SRCROOT}" ]] && \ |
| 161 FLAGS_prepackaged_autotest="/build/${FLAGS_board}/usr/local/autotest/" |
| 162 |
| 157 local autotest_dir="" | 163 local autotest_dir="" |
| 158 if [[ -z "${FLAGS_prepackaged_autotest}" ]]; then | 164 if [[ -z "${FLAGS_prepackaged_autotest}" ]]; then |
| 159 learn_board | 165 learn_board |
| 160 autotest_dir="${GCLIENT_ROOT}/src/third_party/autotest/files" | 166 autotest_dir="${GCLIENT_ROOT}/src/third_party/autotest/files" |
| 161 else | 167 else |
| 162 autotest_dir="${FLAGS_prepackaged_autotest}" | 168 autotest_dir="${FLAGS_prepackaged_autotest}" |
| 163 fi | 169 fi |
| 164 | 170 |
| 165 local control_files_to_run="" | 171 local control_files_to_run="" |
| 166 local chrome_autotests="${CHROME_ROOT}/src/chrome/test/chromeos/autotest/files
" | 172 local chrome_autotests="${CHROME_ROOT}/src/chrome/test/chromeos/autotest/files
" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ | 271 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ |
| 266 "${args[@]}" | 272 "${args[@]}" |
| 267 done | 273 done |
| 268 | 274 |
| 269 echo "" | 275 echo "" |
| 270 echo_color "yellow" ">>> Test results:" | 276 echo_color "yellow" ">>> Test results:" |
| 271 ./generate_test_report "${TMP}" --strip="${TMP}/" | 277 ./generate_test_report "${TMP}" --strip="${TMP}/" |
| 272 } | 278 } |
| 273 | 279 |
| 274 main $@ | 280 main $@ |
| OLD | NEW |