Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: run_remote_tests.sh

Issue 3048051: autotest_run: kill the destructive stuff that's pwning the autotest installation (Closed) Base URL: ssh://gitrw.chromium.org/crosutils
Patch Set: Remove client/packages hax Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « autotest_run.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 $@
OLDNEW
« no previous file with comments | « autotest_run.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698