mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
only consider control files of control or control.* form
Review URL: http://codereview.chromium.org/1345003
This commit is contained in:
parent
2a696210ca
commit
cad6ceb186
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user