Filter out test directory which has only control files.

Review URL: http://codereview.chromium.org/1627006
This commit is contained in:
Eric Li 2010-04-07 15:34:01 -07:00
parent 6795867104
commit f93158db51

View File

@ -150,8 +150,10 @@ def build_autotest(options):
site_tests = '../third_party/autotest/files/client/site_tests' site_tests = '../third_party/autotest/files/client/site_tests'
for site_test in os.listdir(site_tests): for site_test in os.listdir(site_tests):
test_path = os.path.join(site_tests, site_test) test_path = os.path.join(site_tests, site_test)
if (os.path.exists(test_path) and os.path.isdir(test_path) test_py = os.path.join(test_path, '%s.py' % site_test)
and site_test not in blacklist): if (os.path.exists(test_path) and os.path.isdir(test_path) and
os.path.exists(test_py) and os.path.isfile(test_py) and
site_test not in blacklist):
all_tests += ',' + site_test all_tests += ',' + site_test
if 'all' == options.build.lower(): if 'all' == options.build.lower():