[autotest] Filter control files from deps and profilers in dynamic suites
These aren't tests, really, and as such the control files
are often malformed (as far as dynamic_suite.Suite's expectations
anyway). Filter them out, since they just create log spew.
BUG=chromium-os:30565
TEST=unit
TEST=run dev_harness; see that there are no more complaints about these files.
Change-Id: I4e03fb54c13d409f3e96af0f72636bf2a6158a76
Reviewed-on: https://gerrit.chromium.org/gerrit/22144
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
diff --git a/server/cros/dynamic_suite.py b/server/cros/dynamic_suite.py
index cf29ed9..d64c13d 100644
--- a/server/cros/dynamic_suite.py
+++ b/server/cros/dynamic_suite.py
@@ -1104,7 +1104,8 @@
"""
tests = {}
files = cf_getter.get_control_file_list()
- for file in files:
+ matcher = re.compile(r'[^/]+/(deps|profilers)/.+')
+ for file in filter(lambda f: not matcher.match(f), files):
text = cf_getter.get_control_file_contents(file)
try:
found_test = control_data.parse_control_string(text,