blob: b0548fdcf72ef2be05e9c16faec2f696c1fdabbb [file] [log] [blame]
Oleh Prypin1a0593f2019-03-11 09:43:28 +01001# Copyright (c) 2019 The WebRTC project authors. All rights reserved.
Oleh Prypin53c298e2018-05-25 23:44:10 +02002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6def CheckChangeOnUpload(input_api, output_api):
Oleh Prypin1a0593f2019-03-11 09:43:28 +01007 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 Prypin53c298e2018-05-25 23:44:10 +020012
13
14def CheckChangeOnCommit(input_api, output_api):
Oleh Prypin1a0593f2019-03-11 09:43:28 +010015 return CheckChangeOnUpload(input_api, output_api)