blob: 0e39c8d52092935f640312b5a30c4968b86647cc [file] [log] [blame]
Ian Vollick00424e52023-02-03 10:35:501# 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
7See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
8for more details about the presubmit API built into depot_tools.
9"""
10
11PRESUBMIT_VERSION = '2.0.0'
12
Ian Vollick00424e52023-02-03 10:35:5013def 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 Vollick63109f692023-03-02 03:24:1723 'data/test_bundle_data',
Ian Vollick00424e52023-02-03 10:35:5024 globroot='.')
25 results += presubmit_support.CheckBundleData(
26 input_api,
27 output_api,
Ian Vollick63109f692023-03-02 03:24:1728 'data/test_support_bundle_data',
Ian Vollick00424e52023-02-03 10:35:5029 globroot='.')
Ian Vollick00424e52023-02-03 10:35:5030 finally:
31 sys.path = old_sys_path
32 return results