blob: c50be9bbf7589e9e0402775485b2369d2e3f6107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def CommonChecks(input_api, output_api):
results = []
results.extend(input_api.RunTests(
input_api.canned_checks.GetUnitTestsInDirectory(
input_api,
output_api,
input_api.os_path.join('unittests'),
whitelist=[r'.+_test\.py'])))
return results
CheckChangeOnUpload = CommonChecks
CheckChangeOnCommit = CommonChecks
|