webrtc/infra/config/PRESUBMIT.py
Jeremy Leconte f2970c8b37 Copy infra/config in the main branch.
Bug: chromium:1159728
Change-Id: I611d60749f2a7055c67e6db758fa2f17f433c1a8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/254720
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#36184}
2022-03-14 07:45:10 +00:00

20 lines
787 B
Python

# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
def CheckChangeOnUpload(input_api, output_api):
return input_api.RunTests(
input_api.canned_checks.CheckLucicfgGenOutput(
input_api, output_api,
'config.star')) + input_api.canned_checks.CheckChangedLUCIConfigs(
input_api, output_api)
return res
def CheckChangeOnCommit(input_api, output_api):
return CheckChangeOnUpload(input_api, output_api)