blob: be3468484893ec2782b21b785d9de093d35ba6de [file] [log] [blame]
Lann Martin46361ee2019-03-14 15:30:47 -06001# Copyright 2019 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed under the Apache License, Version 2.0
3# that can be found in the LICENSE file.
4
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