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

Side by Side Diff: scripts/slave/unittests/recipe_configs_test.py

Issue 225633007: Upgrade to coverage 3.7.1 and have it auto-build itself on first use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: no more warning Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Provides test coverage for common recipe configurations. 6 """Provides test coverage for common recipe configurations.
7 7
8 recipe config expectations are located in ../recipe_configs_test/*.expected 8 recipe config expectations are located in ../recipe_configs_test/*.expected
9 9
10 In training mode, this will loop over every config item in ../recipe_configs.py 10 In training mode, this will loop over every config item in ../recipe_configs.py
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 coverage_parallel_map(evaluate_configurations) 139 coverage_parallel_map(evaluate_configurations)
140 140
141 retcode = 0 141 retcode = 0
142 142
143 COVERAGE.combine() 143 COVERAGE.combine()
144 total_covered = COVERAGE.report() 144 total_covered = COVERAGE.report()
145 if total_covered != 100.0: 145 if total_covered != 100.0:
146 print 'FATAL: Recipes configs are not at 100% coverage.' 146 print 'FATAL: Recipes configs are not at 100% coverage.'
147 retcode = 2 147 retcode = 2
148 148
149 test_env.print_coverage_warning()
150
151 return retcode 149 return retcode
152 150
153 151
154 if __name__ == '__main__': 152 if __name__ == '__main__':
155 sys.exit(main(sys.argv)) 153 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698