Kaido Kert | b108943 | 2024-03-18 19:46:49 -0700 | [diff] [blame] | 1 | # Copyright 2023 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 | PRESUBMIT_VERSION = '2.0.0' |
| 6 | |
| 7 | USE_PYTHON3 = True |
| 8 | |
| 9 | TEST_PATTERNS = [r'.+_test.py$'] |
| 10 | |
| 11 | |
| 12 | def CheckUnitTests(input_api, output_api): |
| 13 | # Runs all unit tests under the build/ios folder. |
| 14 | return input_api.canned_checks.RunUnitTestsInDirectory( |
| 15 | input_api, |
| 16 | output_api, |
| 17 | '.', |
| 18 | files_to_check=TEST_PATTERNS, |
| 19 | run_on_python2=False, |
| 20 | skip_shebang_check=True) |