• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4"""Top-level presubmit script for testing/trigger_scripts.
5
6See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
7for more details about the presubmit API built into depot_tools.
8"""
9
10def CommonChecks(input_api, output_api):
11    return input_api.canned_checks.RunUnitTestsInDirectory(
12        input_api,
13        output_api,
14        '.',
15        files_to_check=['.*test.py'])
16
17
18def CheckChangeOnUpload(input_api, output_api):
19    return CommonChecks(input_api, output_api)
20
21
22def CheckChangeOnCommit(input_api, output_api):
23    return CommonChecks(input_api, output_api)
24