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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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} \ |
283 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ | 283 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ |
284 "${args[@]}" | 284 "${args[@]}" |
285 done | |
285 | 286 |
286 results_dir="${TMP}/${results_dir_name}" | 287 $(dirname "$0")/generate_test_report "${TMP}" |
petkov
2010/08/11 22:49:50
you could use --prefix to make the output somewhat
| |
287 local test_status="${results_dir}/status.log" | |
288 local test_result_dir="${results_dir}/${short_name}" | |
289 local keyval_file="${test_result_dir}/results/keyval" | |
290 echo "" | |
291 if is_successful_test "${test_status}"; then | |
292 echo_color "green" ">>> SUCCESS: ${control_file}" | |
293 if [[ -f "${keyval_file}" ]]; then | |
294 echo ">>> Keyval was:" | |
295 cat "${keyval_file}" | |
296 fi | |
297 else | |
298 echo_color "red" ">>> FAILED: ${control_file}" | |
299 cat "${test_status}" | |
300 fi | |
301 local end_time=$(date '+%s') | |
302 done | |
303 } | 288 } |
304 | 289 |
305 main $@ | 290 main $@ |
OLD | NEW |