1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard WorkerUSE_PYTHON3 = True 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker 12*d9f75844SAndroid Build Coastguard Workerdef CheckChangeOnUpload(input_api, output_api): 13*d9f75844SAndroid Build Coastguard Worker return input_api.RunTests( 14*d9f75844SAndroid Build Coastguard Worker input_api.canned_checks.CheckLucicfgGenOutput( 15*d9f75844SAndroid Build Coastguard Worker input_api, output_api, 16*d9f75844SAndroid Build Coastguard Worker 'config.star')) + input_api.canned_checks.CheckChangedLUCIConfigs( 17*d9f75844SAndroid Build Coastguard Worker input_api, output_api) 18*d9f75844SAndroid Build Coastguard Worker return res 19*d9f75844SAndroid Build Coastguard Worker 20*d9f75844SAndroid Build Coastguard Worker 21*d9f75844SAndroid Build Coastguard Workerdef CheckChangeOnCommit(input_api, output_api): 22*d9f75844SAndroid Build Coastguard Worker return CheckChangeOnUpload(input_api, output_api) 23