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

Side by Side Diff: chromeos-base/autotest/autotest-0.0.1.ebuild

Issue 1787008: Passing AUTOSERV_TEST_ARGS as arguments to autoserv so spaces are preserved between test arguments. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos-overlay.git
Patch Set: Created 10 years, 7 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 | « 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 # 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
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
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