Add restrictions to files considered control files

Review URL: http://codereview.chromium.org/1155003
This commit is contained in:
Ken Mixter 2010-03-19 18:05:46 -07:00
parent 7c2cef2e70
commit 8142fd6b35

View File

@ -150,7 +150,7 @@ 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} -type f -name control\* | \ ! finds=$(find ${search_path} -maxdepth 2 -type f -name control\* | \
egrep "${test_request}") egrep "${test_request}")
if [[ -z "${finds}" ]]; then if [[ -z "${finds}" ]]; then
echo "Can not find match for ${test_request}" echo "Can not find match for ${test_request}"