OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 # Copyright 2014 the V8 project authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 import find_depot_tools | |
7 import sys | |
8 | |
9 find_depot_tools.add_depot_tools_to_path() | |
10 | |
11 import rietveld | |
12 from git_cl import Changelist | |
13 | |
14 BOTS = [ | |
15 'v8_linux32_perf_try', | |
16 'v8_linux64_perf_try', | |
17 ] | |
18 | |
19 def main(tests): | |
20 cl = Changelist() | |
21 if not cl.GetIssue(): | |
22 print 'Need to upload first' | |
23 return | |
Paweł Hajdan Jr.
2014/11/18 14:24:11
Return non-zero exit code (applies to all lines in
| |
24 | |
25 props = cl.GetIssueProperties() | |
26 if props.get('closed'): | |
27 print 'Cannot send tryjobs for a closed CL' | |
28 return | |
29 | |
30 if props.get('private'): | |
31 print 'Cannot use trybots with private issue' | |
32 return | |
33 | |
34 if not tests: | |
35 print 'Please specify the benchmarks to run as arguments.' | |
36 return | |
37 | |
38 masters = {'internal.client.v8': dict((b, tests) for b in BOTS)} | |
39 cl.RpcServer().trigger_distributed_try_jobs( | |
40 cl.GetIssue(), cl.GetMostRecentPatchset(), cl.GetBranch(), | |
41 False, None, masters) | |
42 | |
43 if __name__ == "__main__": # pragma: no cover | |
44 sys.exit(main(sys.argv[1:])) | |
OLD | NEW |