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

Side by Side Diff: autotest_run.sh

Issue 4683007: Try and get the internal buildbot smoke tests to pass (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 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 # This script is intended as a wrapper to execute autotest tests for a given 7 # This script is intended as a wrapper to execute autotest tests for a given
8 # board. 8 # board.
9 9
10 # Load common constants. This should be the first executable line. 10 # Load common constants. This should be the first executable line.
(...skipping 19 matching lines...) Expand all
30 CHROMEOS_ROOT=/home/${USER}/trunk/ 30 CHROMEOS_ROOT=/home/${USER}/trunk/
31 31
32 # Ensure the configures run by autotest pick up the right config.site 32 # Ensure the configures run by autotest pick up the right config.site
33 CONFIG_SITE=/usr/share/config.site 33 CONFIG_SITE=/usr/share/config.site
34 34
35 [ -z "${FLAGS_board}" ] && \ 35 [ -z "${FLAGS_board}" ] && \
36 die "You must specify --board=" 36 die "You must specify --board="
37 37
38 function setup_ssh() { 38 function setup_ssh() {
39 eval $(ssh-agent) > /dev/null 39 eval $(ssh-agent) > /dev/null
40 # TODO(jrbarnette): This is a temporary hack, slated for removal
41 # before it was ever created. It's a bug, and you should fix it
42 # right away!
43 chmod 400 \
44 ${CHROMEOS_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa
40 ssh-add \ 45 ssh-add \
41 ${CHROMEOS_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa 46 ${CHROMEOS_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa
42 } 47 }
43 48
44 function teardown_ssh() { 49 function teardown_ssh() {
45 ssh-agent -k > /dev/null 50 ssh-agent -k > /dev/null
46 } 51 }
47 52
48 src_test() { 53 src_test() {
49 # TODO: These places currently need to be writeable but shouldn't be 54 # TODO: These places currently need to be writeable but shouldn't be
(...skipping 10 matching lines...) Expand all
60 local timestamp=$(date +%Y-%m-%d-%H.%M.%S) 65 local timestamp=$(date +%Y-%m-%d-%H.%M.%S)
61 66
62 # Do not use sudo, it'll unset all your environment 67 # Do not use sudo, it'll unset all your environment
63 LOGNAME=${USER} ./server/autoserv -r /tmp/results.${timestamp} \ 68 LOGNAME=${USER} ./server/autoserv -r /tmp/results.${timestamp} \
64 ${AUTOSERV_ARGS} "${args[@]}" 69 ${AUTOSERV_ARGS} "${args[@]}"
65 70
66 teardown_ssh 71 teardown_ssh
67 } 72 }
68 73
69 src_test 74 src_test
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698