From f93158db51e5e7d51d3dc6efce393bb5c90c0ac3 Mon Sep 17 00:00:00 2001 From: Eric Li Date: Wed, 7 Apr 2010 15:34:01 -0700 Subject: [PATCH] Filter out test directory which has only control files. Review URL: http://codereview.chromium.org/1627006 --- autotest | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autotest b/autotest index 28b025b7e2..7877dd2be5 100755 --- a/autotest +++ b/autotest @@ -150,8 +150,10 @@ def build_autotest(options): site_tests = '../third_party/autotest/files/client/site_tests' for site_test in os.listdir(site_tests): test_path = os.path.join(site_tests, site_test) - if (os.path.exists(test_path) and os.path.isdir(test_path) - and site_test not in blacklist): + test_py = os.path.join(test_path, '%s.py' % site_test) + 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 if 'all' == options.build.lower():