forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPRESUBMIT.py
31 lines (26 loc) · 1008 Bytes
/
PRESUBMIT.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
PRESUBMIT_VERSION = '2.0.0'
def CheckTestingBuildbotSourceSideSpecs(input_api, output_api):
return input_api.RunTests([
input_api.Command(
name='check source side specs',
cmd=[
input_api.python3_executable,
'../../../../testing/buildbot/generate_buildbot_json.py',
'--check', '--verbose'
],
kwargs={},
message=output_api.PresubmitError),
])
def CheckTestingBuildbotJsonFiles(input_api, output_api):
return input_api.RunTests([
input_api.Command(name='check JSON files',
cmd=[
input_api.python3_executable,
'../../../../testing/buildbot/check.py'
],
kwargs={},
message=output_api.PresubmitError),
])