| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The LUCI Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed under the Apache License, Version 2.0 | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # that can be found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 def tests(*path): | 30 def tests(*path): |
| 31 return input_api.canned_checks.GetUnitTestsInDirectory( | 31 return input_api.canned_checks.GetUnitTestsInDirectory( |
| 32 input_api, | 32 input_api, |
| 33 output_api, | 33 output_api, |
| 34 input_api.os_path.join(*path), | 34 input_api.os_path.join(*path), |
| 35 whitelist=[r'.+_test\.py']) | 35 whitelist=[r'.+_test\.py']) |
| 36 | 36 |
| 37 results = [] | 37 results = [] |
| 38 | 38 |
| 39 results.extend(input_api.canned_checks.PanProjectChecks( | 39 results.extend(input_api.canned_checks.PanProjectChecks( |
| 40 input_api, output_api, license_header=header(input_api))) | 40 input_api, output_api, license_header=header(input_api), |
| 41 excluded_paths=['bootstrap/virtualenv/*'] |
| 42 )) |
| 41 | 43 |
| 42 results.extend(input_api.RunTests( | 44 results.extend(input_api.RunTests( |
| 43 tests('recipe_engine', 'unittests') + | 45 tests('recipe_engine', 'unittests') + |
| 44 tests('unittests'))) | 46 tests('unittests'))) |
| 45 | 47 |
| 46 return results | 48 return results |
| 47 | 49 |
| 48 | 50 |
| 49 CheckChangeOnUpload = CommonChecks | 51 CheckChangeOnUpload = CommonChecks |
| 50 CheckChangeOnCommit = CommonChecks | 52 CheckChangeOnCommit = CommonChecks |
| OLD | NEW |