| OLD | NEW |
| 1 # Copyright 2012 The LUCI Authors. All rights reserved. | 1 # Copyright 2012 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Top-level presubmit script for swarm_client. | 5 """Top-level presubmit script for swarm_client. |
| 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 gcl. | 8 details on the presubmit API built into gcl. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 def CommonChecks(input_api, output_api): | 11 def CommonChecks(input_api, output_api): |
| 12 import sys | 12 import sys |
| 13 def join(*args): | 13 def join(*args): |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 output.extend(input_api.RunTests(unit_tests)) | 49 output.extend(input_api.RunTests(unit_tests)) |
| 50 return output | 50 return output |
| 51 | 51 |
| 52 | 52 |
| 53 def CheckChangeOnUpload(input_api, output_api): | 53 def CheckChangeOnUpload(input_api, output_api): |
| 54 return CommonChecks(input_api, output_api) | 54 return CommonChecks(input_api, output_api) |
| 55 | 55 |
| 56 | 56 |
| 57 def CheckChangeOnCommit(input_api, output_api): | 57 def CheckChangeOnCommit(input_api, output_api): |
| 58 return CommonChecks(input_api, output_api) | 58 return CommonChecks(input_api, output_api) |
| OLD | NEW |