| OLD | NEW |
| 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 Loading... |
| 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)) |
| OLD | NEW |