OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
3 | 3 |
4 EAPI=2 | 4 EAPI=2 |
5 | 5 |
6 inherit toolchain-funcs | 6 inherit toolchain-funcs |
7 | 7 |
8 DESCRIPTION="Autotest build_autotest wrapper" | 8 DESCRIPTION="Autotest build_autotest wrapper" |
9 HOMEPAGE="http://src.chromium.org" | 9 HOMEPAGE="http://src.chromium.org" |
10 SRC_URI="" | 10 SRC_URI="" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 src_test() { | 120 src_test() { |
121 local third_party="${CHROMEOS_ROOT}/src/third_party" | 121 local third_party="${CHROMEOS_ROOT}/src/third_party" |
122 copy_src "${BUILD_STAGE}" | 122 copy_src "${BUILD_STAGE}" |
123 cp -fpru "${AUTOTEST_SRC}/global_config.ini" "${BUILD_STAGE}" | 123 cp -fpru "${AUTOTEST_SRC}/global_config.ini" "${BUILD_STAGE}" |
124 | 124 |
125 setup_ssh | 125 setup_ssh |
126 cd "${BUILD_STAGE}" | 126 cd "${BUILD_STAGE}" |
127 | 127 |
128 setup_cross_toolchain | 128 setup_cross_toolchain |
129 | 129 |
| 130 local args=() |
| 131 if [[ -n ${AUTOSERV_TEST_ARGS} ]] ; then |
| 132 args=("-a" "${AUTOSERV_TEST_ARGS}") |
| 133 fi |
| 134 |
130 local timestamp=$(date +%Y-%m-%d-%H.%M.%S) | 135 local timestamp=$(date +%Y-%m-%d-%H.%M.%S) |
131 # Do not use sudo, it'll unset all your environment | 136 # Do not use sudo, it'll unset all your environment |
132 LOGNAME=${SUDO_USER} ./server/autoserv -r /tmp/results.${timestamp} \ | 137 LOGNAME=${SUDO_USER} ./server/autoserv -r /tmp/results.${timestamp} \ |
133 » » ${AUTOSERV_ARGS} | 138 » » ${AUTOSERV_ARGS} "${args[@]}" |
134 teardown_ssh | 139 teardown_ssh |
135 } | 140 } |
136 | 141 |
OLD | NEW |