blob: 793ec27472b999a362a14625befdacffe9abd8fe [file] [log] [blame]
Dave Tapuskab734c872023-03-30 19:32:011# 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
5See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
6for more details about the presubmit API built into depot_tools.
7"""
8
9import sys
10
11PRESUBMIT_VERSION = '2.0.0'
12
Dave Tapuskab734c872023-03-30 19:32:0113
14def 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