Ian Vollick | 00424e5 | 2023-02-03 10:35:50 | [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 | """Top-level presubmit for //net |
| 6 | |
| 7 | See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 8 | for more details about the presubmit API built into depot_tools. |
| 9 | """ |
| 10 | |
| 11 | PRESUBMIT_VERSION = '2.0.0' |
| 12 | |
Ian Vollick | 00424e5 | 2023-02-03 10:35:50 | [diff] [blame] | 13 | def CheckChange(input_api, output_api): |
| 14 | import sys |
| 15 | old_sys_path = sys.path[:] |
| 16 | results = [] |
| 17 | try: |
| 18 | sys.path.append(input_api.change.RepositoryRoot()) |
| 19 | from build.ios import presubmit_support |
| 20 | results += presubmit_support.CheckBundleData( |
| 21 | input_api, |
| 22 | output_api, |
Ian Vollick | 63109f69 | 2023-03-02 03:24:17 | [diff] [blame] | 23 | 'data/test_bundle_data', |
Ian Vollick | 00424e5 | 2023-02-03 10:35:50 | [diff] [blame] | 24 | globroot='.') |
| 25 | results += presubmit_support.CheckBundleData( |
| 26 | input_api, |
| 27 | output_api, |
Ian Vollick | 63109f69 | 2023-03-02 03:24:17 | [diff] [blame] | 28 | 'data/test_support_bundle_data', |
Ian Vollick | 00424e5 | 2023-02-03 10:35:50 | [diff] [blame] | 29 | globroot='.') |
Ian Vollick | 00424e5 | 2023-02-03 10:35:50 | [diff] [blame] | 30 | finally: |
| 31 | sys.path = old_sys_path |
| 32 | return results |