summaryrefslogtreecommitdiff
path: root/chromium/tools/web_dev_style/PRESUBMIT.py
blob: 64dcdb90df24df988cbee3bf9ee25580084c1d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

USE_PYTHON3 = True


def CheckChangeOnUpload(*args):
  return _CommonChecks(*args)


def CheckChangeOnCommit(*args):
  return _CommonChecks(*args)


def _CommonChecks(input_api, output_api):
  tests = ['test_suite.py']

  return input_api.canned_checks.RunUnitTests(input_api,
                                              output_api,
                                              tests,
                                              run_on_python2=False)