Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2019 The WebRTC project authors. All rights reserved. |
Oleh Prypin | 53c298e | 2018-05-25 23:44:10 +0200 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | |
| 6 | def CheckChangeOnUpload(input_api, output_api): |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame^] | 7 | return input_api.RunTests( |
| 8 | input_api.canned_checks.CheckLucicfgGenOutput(input_api, output_api, |
| 9 | 'config.star') |
| 10 | ) + input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api) |
| 11 | return res |
Oleh Prypin | 53c298e | 2018-05-25 23:44:10 +0200 | [diff] [blame] | 12 | |
| 13 | |
| 14 | def CheckChangeOnCommit(input_api, output_api): |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame^] | 15 | return CheckChangeOnUpload(input_api, output_api) |