OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |