OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """Presubmit script for devil. | 5 """Presubmit script for devil. |
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 depot_tools. | 8 details on the presubmit API built into depot_tools. |
9 """ | 9 """ |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 return input_api.canned_checks.RunUnitTests( | 33 return input_api.canned_checks.RunUnitTests( |
34 input_api, | 34 input_api, |
35 output_api, | 35 output_api, |
36 unit_tests=[ | 36 unit_tests=[ |
37 J('devil_env_test.py'), | 37 J('devil_env_test.py'), |
38 J('android', 'battery_utils_test.py'), | 38 J('android', 'battery_utils_test.py'), |
39 J('android', 'device_utils_test.py'), | 39 J('android', 'device_utils_test.py'), |
40 J('android', 'fastboot_utils_test.py'), | 40 J('android', 'fastboot_utils_test.py'), |
41 J('android', 'md5sum_test.py'), | 41 J('android', 'md5sum_test.py'), |
42 J('android', 'logcat_monitor_test.py'), | 42 J('android', 'logcat_monitor_test.py'), |
| 43 J('android', 'tools', 'script_common_test.py'), |
43 J('utils', 'cmd_helper_test.py'), | 44 J('utils', 'cmd_helper_test.py'), |
44 J('utils', 'timeout_retry_unittest.py'), | 45 J('utils', 'timeout_retry_unittest.py'), |
45 ], | 46 ], |
46 env=test_env) | 47 env=test_env) |
47 | 48 |
48 | 49 |
49 def _EnsureNoPylibUse(input_api, output_api): | 50 def _EnsureNoPylibUse(input_api, output_api): |
50 def other_python_files(f): | 51 def other_python_files(f): |
51 this_presubmit_file = input_api.os_path.join( | 52 this_presubmit_file = input_api.os_path.join( |
52 input_api.PresubmitLocalPath(), 'PRESUBMIT.py') | 53 input_api.PresubmitLocalPath(), 'PRESUBMIT.py') |
(...skipping 25 matching lines...) Expand all Loading... |
78 output += _EnsureNoPylibUse(input_api, output_api) | 79 output += _EnsureNoPylibUse(input_api, output_api) |
79 return output | 80 return output |
80 | 81 |
81 | 82 |
82 def CheckChangeOnUpload(input_api, output_api): | 83 def CheckChangeOnUpload(input_api, output_api): |
83 return CommonChecks(input_api, output_api) | 84 return CommonChecks(input_api, output_api) |
84 | 85 |
85 | 86 |
86 def CheckChangeOnCommit(input_api, output_api): | 87 def CheckChangeOnCommit(input_api, output_api): |
87 return CommonChecks(input_api, output_api) | 88 return CommonChecks(input_api, output_api) |
OLD | NEW |