diff options
-rwxr-xr-x | tools/code_coverage/coverage_posix.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py index 9d107d1..ec90f07 100755 --- a/tools/code_coverage/coverage_posix.py +++ b/tools/code_coverage/coverage_posix.py @@ -145,12 +145,14 @@ class Coverage(object): def TrimTests(self): """Trim specific tests for each platform.""" if self.IsWindows(): - # special case for now to be fast + return + # Special case to be fast, as needed... + # TODO(jrg): remove inclusion = ['base_unittests'] keep = [] for test in self.tests: for i in inclusion: - if test.endswith(i): + if i in test: keep.append(test) self.tests = keep return |