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

Side by Side Diff: run_remote_tests.sh

Issue 3473015: crosutils: Make run_remote_tests' output for ambiguous case more clear. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 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 | 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) 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if [[ -z "${finds}" ]]; then 182 if [[ -z "${finds}" ]]; then
183 echo_color "red" ">>> Cannot find match for \"${test_request}\"" 183 echo_color "red" ">>> Cannot find match for \"${test_request}\""
184 exit 1 184 exit 1
185 fi 185 fi
186 local matches=$(echo "${finds}" | wc -l) 186 local matches=$(echo "${finds}" | wc -l)
187 if [[ ${matches} -gt 1 ]]; then 187 if [[ ${matches} -gt 1 ]]; then
188 echo "" 188 echo ""
189 echo_color "red" \ 189 echo_color "red" \
190 ">>> \"${test_request}\" is ambiguous. These control file paths match:" 190 ">>> \"${test_request}\" is ambiguous. These control file paths match:"
191 for FIND in ${finds}; do 191 for FIND in ${finds}; do
192 echo_color "red" " * " "${FIND}" 192 echo_color "red" " * " ^"${FIND}\$"
193 done 193 done
194 echo "" 194 echo ""
195 echo ">>> Disambiguate by copy-and-pasting the whole path above" \ 195 echo ">>> Disambiguate by copy-and-pasting the whole path above" \
196 "instead of passing \"${test_request}\"." 196 "instead of passing \"${test_request}\"."
197 exit 1 197 exit 1
198 fi 198 fi
199 for i in $(seq 1 $FLAGS_iterations); do 199 for i in $(seq 1 $FLAGS_iterations); do
200 control_files_to_run="${control_files_to_run} '${finds}'" 200 control_files_to_run="${control_files_to_run} '${finds}'"
201 done 201 done
202 done 202 done
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \ 266 "${option}" "${control_file}" -r "${results_dir}" ${verbose} \
267 "${passthrough_args}" 267 "${passthrough_args}"
268 done 268 done
269 269
270 echo "" 270 echo ""
271 echo_color "yellow" ">>> Test results:" 271 echo_color "yellow" ">>> Test results:"
272 ./generate_test_report "${TMP}" --strip="${TMP}/" 272 ./generate_test_report "${TMP}" --strip="${TMP}/"
273 } 273 }
274 274
275 main "$@" 275 main "$@"
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