Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: tools/bots/bot.py

Issue 148463007: Add builder_tag option to tools/test.dart (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/pkgbuild.status ('k') | tools/bots/pub.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Shared code for use in the buildbot scripts. 8 Shared code for use in the buildbot scripts.
9 """ 9 """
10 10
(...skipping 22 matching lines...) Expand all
33 - host_checked: True if we should run in host checked mode, otherwise False. 33 - host_checked: True if we should run in host checked mode, otherwise False.
34 - minified: True if we should minify the code, otherwise False 34 - minified: True if we should minify the code, otherwise False
35 - shard_index: The shard we are running, None when not specified. 35 - shard_index: The shard we are running, None when not specified.
36 - total_shards: The total number of shards, None when not specified. 36 - total_shards: The total number of shards, None when not specified.
37 - is_buildbot: True if we are on a buildbot (or emulating it). 37 - is_buildbot: True if we are on a buildbot (or emulating it).
38 - test_set: Specification of a non standard test set or None. 38 - test_set: Specification of a non standard test set or None.
39 - csp: This is using csp when running 39 - csp: This is using csp when running
40 - arch: The architecture to build on. 40 - arch: The architecture to build on.
41 - dart2js_full: Boolean indicating whether this builder will run dart2js 41 - dart2js_full: Boolean indicating whether this builder will run dart2js
42 on several different runtimes. 42 on several different runtimes.
43 - test_tag: A tag indicating a specialial builder setup.
kasperl 2014/01/28 09:35:55 builder_tag? specialial -> special
ricow1 2014/01/28 09:49:36 Done.
43 """ 44 """
44 def __init__(self, compiler, runtime, mode, system, checked=False, 45 def __init__(self, compiler, runtime, mode, system, checked=False,
45 host_checked=False, minified=False, shard_index=None, 46 host_checked=False, minified=False, shard_index=None,
46 total_shards=None, is_buildbot=False, test_set=None, 47 total_shards=None, is_buildbot=False, test_set=None,
47 csp=None, arch=None, dart2js_full=False): 48 csp=None, arch=None, dart2js_full=False, test_tag=None):
48 self.compiler = compiler 49 self.compiler = compiler
49 self.runtime = runtime 50 self.runtime = runtime
50 self.mode = mode 51 self.mode = mode
51 self.system = system 52 self.system = system
52 self.checked = checked 53 self.checked = checked
53 self.host_checked = host_checked 54 self.host_checked = host_checked
54 self.minified = minified 55 self.minified = minified
55 self.shard_index = shard_index 56 self.shard_index = shard_index
56 self.total_shards = total_shards 57 self.total_shards = total_shards
57 self.is_buildbot = is_buildbot 58 self.is_buildbot = is_buildbot
58 self.test_set = test_set 59 self.test_set = test_set
59 self.csp = csp 60 self.csp = csp
60 self.dart2js_full = dart2js_full 61 self.dart2js_full = dart2js_full
62 self.test_tag = test_tag
61 if (arch == None): 63 if (arch == None):
62 self.arch = 'ia32' 64 self.arch = 'ia32'
63 else: 65 else:
64 self.arch = arch 66 self.arch = arch
65 67
66 def PrintBuildInfo(self): 68 def PrintBuildInfo(self):
67 shard_description = "" 69 shard_description = ""
68 if self.shard_index: 70 if self.shard_index:
69 shard_description = " shard %s of %s" % (self.shard_index, 71 shard_description = " shard %s of %s" % (self.shard_index,
70 self.total_shards) 72 self.total_shards)
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 if exit_code != 0: 246 if exit_code != 0:
245 raise OSError(exit_code) 247 raise OSError(exit_code)
246 248
247 249
248 def GetStepName(name, flags): 250 def GetStepName(name, flags):
249 """ 251 """
250 Filters out flags with '=' as this breaks the /stats feature of the buildbot. 252 Filters out flags with '=' as this breaks the /stats feature of the buildbot.
251 """ 253 """
252 flags = [x for x in flags if not '=' in x] 254 flags = [x for x in flags if not '=' in x]
253 return ('%s tests %s' % (name, ' '.join(flags))).strip() 255 return ('%s tests %s' % (name, ' '.join(flags))).strip()
OLDNEW
« no previous file with comments | « pkg/pkgbuild.status ('k') | tools/bots/pub.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698