• 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
5
6USE_PYTHON3 = True
7
8
9def _RunTests(input_api, output_api):
10  return (input_api.canned_checks.RunUnitTestsInDirectory(
11      input_api,
12      output_api,
13      '.',
14      files_to_check=[r'.+_test.py$'],
15      run_on_python2=False,
16      skip_shebang_check=True))
17
18
19def CheckChangeOnUpload(input_api, output_api):
20  return _RunTests(input_api, output_api)
21
22
23def CheckChangeOnCommit(input_api, output_api):
24  return _RunTests(input_api, output_api)
25