Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: third_party/recipe_engine/expect_tests/cover.py

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Moved field_composer_test with its buddies Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/recipe_engine/expect_tests/__init__.py ('k') | third_party/recipe_engine/expect_tests/handle_debug.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698