blob: 8364d9851ab54ef1b2127e476679cd3b33e7fef2 [file] [log] [blame]
Lann Martin46361ee2019-03-14 15:30:47 -06001# Copyright 2019 The Chromium OS Authors. All rights reserved.
David Burgerc0effc22020-03-04 08:27:07 -07002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
Lann Martin46361ee2019-03-14 15:30:47 -06004
5
6def CommonChecks(input_api, output_api):
7 results = []
8
9 # recipes.py test run
10 results += input_api.RunTests([
11 input_api.Command(
12 name='recipes test',
13 cmd=[input_api.python_executable, 'recipes.py', 'test', 'run'],
14 kwargs={},
15 message=output_api.PresubmitError,
16 )
17 ])
18
Andrew Lamb9b2d0862019-04-03 16:38:52 -060019 results += input_api.canned_checks.CheckPatchFormatted(
20 input_api, output_api, check_python=True)
21
Lann Martin46361ee2019-03-14 15:30:47 -060022 return results
23
24
25CheckChangeOnUpload = CommonChecks
26CheckChangeOnCommit = CommonChecks