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

Side by Side Diff: src/scripts/run_remote_tests.sh

Issue 1345003: only consider control files of control or control.* form (Closed)
Patch Set: ignore all emacs backup files Created 10 years, 8 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 #!/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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 fi 156 fi
157 157
158 local autoserv="${autotest_dir}/server/autoserv" 158 local autoserv="${autotest_dir}/server/autoserv"
159 159
160 local control_files_to_run="" 160 local control_files_to_run=""
161 161
162 # Now search for tests which unambiguously include the given identifier 162 # Now search for tests which unambiguously include the given identifier
163 local search_path=$(echo ${autotest_dir}/{client,server}/{tests,site_tests}) 163 local search_path=$(echo ${autotest_dir}/{client,server}/{tests,site_tests})
164 for test_request in $FLAGS_ARGV; do 164 for test_request in $FLAGS_ARGV; do
165 test_request=$(remove_quotes "${test_request}") 165 test_request=$(remove_quotes "${test_request}")
166 ! finds=$(find ${search_path} -maxdepth 2 -type f -name control\* | \ 166 ! finds=$(find ${search_path} -maxdepth 2 -type f \( -name control.\* -or \
167 egrep "${test_request}") 167 -name control \) | egrep -v "~$" | egrep "${test_request}")
168 if [[ -z "${finds}" ]]; then 168 if [[ -z "${finds}" ]]; then
169 echo_color "red" ">>> Cannot find match for \"${test_request}\"" 169 echo_color "red" ">>> Cannot find match for \"${test_request}\""
170 FLAGS_cleanup=${FLAGS_TRUE} 170 FLAGS_cleanup=${FLAGS_TRUE}
171 exit 1 171 exit 1
172 fi 172 fi
173 local matches=$(echo "${finds}" | wc -l) 173 local matches=$(echo "${finds}" | wc -l)
174 if [[ ${matches} -gt 1 ]]; then 174 if [[ ${matches} -gt 1 ]]; then
175 echo "" 175 echo ""
176 echo_color "red" \ 176 echo_color "red" \
177 ">>> \"${test_request}\" is ambiguous. These control file paths match:" 177 ">>> \"${test_request}\" is ambiguous. These control file paths match:"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 fi 245 fi
246 else 246 else
247 echo_color "red" ">>> FAILED: ${control_file}" 247 echo_color "red" ">>> FAILED: ${control_file}"
248 cat "${test_status}" 248 cat "${test_status}"
249 fi 249 fi
250 local end_time=$(date '+%s') 250 local end_time=$(date '+%s')
251 done 251 done
252 } 252 }
253 253
254 main $@ 254 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