| Index: third_party/recipe_engine/expect_tests/cover.py
|
| diff --git a/scripts/slave/unittests/expect_tests/cover.py b/third_party/recipe_engine/expect_tests/cover.py
|
| similarity index 92%
|
| rename from scripts/slave/unittests/expect_tests/cover.py
|
| rename to third_party/recipe_engine/expect_tests/cover.py
|
| index bb657e185ce18e319111e9c40731c54729a1da4e..d5411166ac2c7fdf4def118ab6c086181f2afe05 100644
|
| --- a/scripts/slave/unittests/expect_tests/cover.py
|
| +++ b/third_party/recipe_engine/expect_tests/cover.py
|
| @@ -4,8 +4,6 @@
|
|
|
| from cStringIO import StringIO
|
|
|
| -import test_env # pylint: disable=W0611
|
| -
|
| import coverage
|
|
|
| # This is instead of a contextmanager because it causes old pylints to crash :(
|
| @@ -56,15 +54,15 @@ class CoverageContext(object):
|
| if self.enabled:
|
| self.cov.combine()
|
|
|
| - def report(self, verbose):
|
| + def report(self, verbose, omit=None):
|
| fail = False
|
|
|
| if self.enabled:
|
| if self.html_report:
|
| - self.cov.html_report(directory=self.html_report)
|
| + self.cov.html_report(directory=self.html_report, omit=None)
|
|
|
| outf = StringIO()
|
| - fail = self.cov.report(file=outf) != 100.0
|
| + fail = self.cov.report(file=outf, omit=omit) != 100.0
|
| summary = outf.getvalue().replace('%- 15s' % 'Name', 'Coverage Report', 1)
|
| if verbose:
|
| print
|
|
|