PRESUBMIT.py 619 B

12345678910111213141516171819202122
  1. # Copyright 2017 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. USE_PYTHON3 = True
  5. def CheckChangeOnUpload(*args):
  6. return _CommonChecks(*args)
  7. def CheckChangeOnCommit(*args):
  8. return _CommonChecks(*args)
  9. def _CommonChecks(input_api, output_api):
  10. tests = ['test_suite.py']
  11. return input_api.canned_checks.RunUnitTests(input_api,
  12. output_api,
  13. tests,
  14. run_on_python2=False)