You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
573 B
Python
17 lines
573 B
Python
# Copyright 2025 The Chromium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
"""Top-level presubmit script for depot_tools/mcp.
|
|
|
|
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
|
|
details on the presubmit API built into depot_tools.
|
|
"""
|
|
|
|
PRESUBMIT_VERSION = '2.0.0'
|
|
|
|
|
|
def CheckRunUnittests(input_api, output_api):
|
|
tests = input_api.canned_checks.GetUnitTestsInDirectory(
|
|
input_api, output_api, '.', files_to_check=[r'.*test\.py$'])
|
|
return input_api.RunTests(tests)
|