| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Top-level presubmit script for buildbot. | 5 """Top-level presubmit script for buildbot. |
| 6 | 6 |
| 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for |
| 8 details on the presubmit API built into git cl. | 8 details on the presubmit API built into git cl. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( | 102 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( |
| 103 input_api, | 103 input_api, |
| 104 output_api, | 104 output_api, |
| 105 input_api.os_path.join('scripts', 'common', 'unittests'), | 105 input_api.os_path.join('scripts', 'common', 'unittests'), |
| 106 whitelist)) | 106 whitelist)) |
| 107 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( | 107 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( |
| 108 input_api, | 108 input_api, |
| 109 output_api, | 109 output_api, |
| 110 input_api.os_path.join('scripts', 'tools', 'unittests'), | 110 input_api.os_path.join('scripts', 'tools', 'unittests'), |
| 111 whitelist)) | 111 whitelist)) |
| 112 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( | |
| 113 input_api, | |
| 114 output_api, | |
| 115 input_api.os_path.join('scripts', 'tools', 'blink_roller'), | |
| 116 whitelist)) | |
| 117 | 112 |
| 118 recipe_modules_tests = input_api.glob( | 113 recipe_modules_tests = input_api.glob( |
| 119 join('scripts', 'slave', 'recipe_modules', '*', 'tests')) | 114 join('scripts', 'slave', 'recipe_modules', '*', 'tests')) |
| 120 for path in recipe_modules_tests: | 115 for path in recipe_modules_tests: |
| 121 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( | 116 tests.extend(input_api.canned_checks.GetUnitTestsInDirectory( |
| 122 input_api, | 117 input_api, |
| 123 output_api, | 118 output_api, |
| 124 path, | 119 path, |
| 125 whitelist)) | 120 whitelist)) |
| 126 | 121 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 def CheckChangeOnUpload(input_api, output_api): | 176 def CheckChangeOnUpload(input_api, output_api): |
| 182 return [] # Try-jobs/commit-queue do a better job of testing, faster. | 177 return [] # Try-jobs/commit-queue do a better job of testing, faster. |
| 183 | 178 |
| 184 | 179 |
| 185 def CheckChangeOnCommit(input_api, output_api): | 180 def CheckChangeOnCommit(input_api, output_api): |
| 186 output = CommonChecks(input_api, output_api) | 181 output = CommonChecks(input_api, output_api) |
| 187 output.extend(ConditionalChecks(input_api, output_api)) | 182 output.extend(ConditionalChecks(input_api, output_api)) |
| 188 output.extend(CommitChecks(input_api, output_api)) | 183 output.extend(CommitChecks(input_api, output_api)) |
| 189 output.extend(BuildInternalCheck(output, input_api, output_api)) | 184 output.extend(BuildInternalCheck(output, input_api, output_api)) |
| 190 return output | 185 return output |
| OLD | NEW |