only consider control files of control or control.* form

Review URL: http://codereview.chromium.org/1345003
This commit is contained in:
Ken Mixter 2010-03-27 16:34:11 -07:00
parent 2a696210ca
commit cad6ceb186

View File

@ -163,8 +163,8 @@ function main() {
local search_path=$(echo ${autotest_dir}/{client,server}/{tests,site_tests}) local search_path=$(echo ${autotest_dir}/{client,server}/{tests,site_tests})
for test_request in $FLAGS_ARGV; do for test_request in $FLAGS_ARGV; do
test_request=$(remove_quotes "${test_request}") test_request=$(remove_quotes "${test_request}")
! finds=$(find ${search_path} -maxdepth 2 -type f -name control\* | \ ! finds=$(find ${search_path} -maxdepth 2 -type f \( -name control.\* -or \
egrep "${test_request}") -name control \) | egrep -v "~$" | egrep "${test_request}")
if [[ -z "${finds}" ]]; then if [[ -z "${finds}" ]]; then
echo_color "red" ">>> Cannot find match for \"${test_request}\"" echo_color "red" ">>> Cannot find match for \"${test_request}\""
FLAGS_cleanup=${FLAGS_TRUE} FLAGS_cleanup=${FLAGS_TRUE}