Dave Tapuska | b734c87 | 2023-03-30 19:32:01 | [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 | """Presubmit checks for blink |
| 5 | See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 6 | for more details about the presubmit API built into depot_tools. |
| 7 | """ |
| 8 | |
| 9 | import sys |
| 10 | |
| 11 | PRESUBMIT_VERSION = '2.0.0' |
| 12 | |
Dave Tapuska | b734c87 | 2023-03-30 19:32:01 | [diff] [blame] | 13 | |
| 14 | def CheckChange(input_api, output_api): |
| 15 | old_sys_path = sys.path[:] |
| 16 | results = [] |
| 17 | try: |
| 18 | sys.path.append(input_api.change.RepositoryRoot()) |
| 19 | # pylint: disable=no-name-in-module,import-outside-toplevel |
| 20 | from build.ios import presubmit_support |
| 21 | results += presubmit_support.CheckBundleData( |
| 22 | input_api, output_api, 'blink_common_unittests_bundle_data', |
| 23 | '.') |
| 24 | finally: |
| 25 | sys.path = old_sys_path |
| 26 | return results |