blob: 04e194eff8661b6dc560e91d9d809e240665d877 [file]
# Copyright 2026 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for //chrome/android/features.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details on the presubmit API built into depot_tools.
"""
PRESUBMIT_VERSION = '2.0.0'
def CheckPythonUnittestsPass(input_api, output_api):
if not input_api.AffectedFiles(
file_filter=lambda f: f.LocalPath().endswith('.py')
):
return []
return input_api.RunTests(
input_api.canned_checks.GetUnitTestsInDirectory(
input_api,
output_api,
input_api.PresubmitLocalPath(),
files_to_check=[r'.+_unittest\.py$'],
)
)