OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 # coding=utf8 | |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 """Runs presubmit check on the source tree. | |
7 | |
8 This shims removes the checks for try jobs. | |
9 """ | |
10 | |
11 import os | |
12 import sys | |
13 | |
14 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | |
15 sys.path.insert(0, os.path.dirname(ROOT_DIR)) | |
16 | |
17 import find_depot_tools # pylint: disable=W0611 | |
18 import presubmit_support | |
19 | |
20 # Do not pass them through the command line. | |
21 email = sys.stdin.readline().strip() | |
22 assert email | |
23 password = sys.stdin.readline().strip() | |
24 sys.stdin.close() | |
25 | |
26 argv = sys.argv[1:] | |
27 argv.extend(['--rietveld_email', email, '--rietveld_password', password]) | |
28 argv.extend(['--skip_canned', 'CheckRietveldTryJobExecution']) | |
29 argv.extend(['--skip_canned', 'CheckTreeIsOpen']) | |
30 argv.extend(['--skip_canned', 'CheckBuildbotPendingBuilds']) | |
31 | |
32 sys.exit(presubmit_support.Main(argv)) | |
OLD | NEW |