| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Utility class to generate a Dart-specific BuildFactory. | 6 """Utility class to generate a Dart-specific BuildFactory. |
| 7 | 7 |
| 8 Based on gclient_factory.py. | 8 Based on gclient_factory.py. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 # Add the compile step if needed. | 250 # Add the compile step if needed. |
| 251 if slave_type in ['BuilderTester', 'Builder', 'Trybot']: | 251 if slave_type in ['BuilderTester', 'Builder', 'Trybot']: |
| 252 dart_cmd_obj.AddCompileStep(options=options, | 252 dart_cmd_obj.AddCompileStep(options=options, |
| 253 timeout=compile_timeout) | 253 timeout=compile_timeout) |
| 254 | 254 |
| 255 # Add all the tests. | 255 # Add all the tests. |
| 256 if slave_type in ['BuilderTester', 'Trybot', 'Tester']: | 256 if slave_type in ['BuilderTester', 'Trybot', 'Tester']: |
| 257 dart_cmd_obj.AddTests(options=options, channel=self.channel) | 257 dart_cmd_obj.AddTests(options=options, channel=self.channel) |
| 258 | 258 |
| 259 # Archive crash dumps |
| 260 if slave_type in ['BuilderTester', 'Trybot', 'Tester']: |
| 261 dart_cmd_obj.AddArchiveCoredumps(options=options) |
| 262 |
| 259 for trigger_instance in triggers: | 263 for trigger_instance in triggers: |
| 260 dart_cmd_obj.AddTrigger(trigger_instance) | 264 dart_cmd_obj.AddTrigger(trigger_instance) |
| 261 | 265 |
| 262 dart_cmd_obj.AddKillStep(step_name="Taskkill after running") | 266 dart_cmd_obj.AddKillStep(step_name="Taskkill after running") |
| 263 | 267 |
| 264 return factory | 268 return factory |
| 265 | 269 |
| 266 def DartAnnotatedFactory(self, python_script, | 270 def DartAnnotatedFactory(self, python_script, |
| 267 target='Release', tests=None, | 271 target='Release', tests=None, |
| 268 timeout=1200, factory_properties=None, | 272 timeout=1200, factory_properties=None, |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 False) | 689 False) |
| 686 statuses.append( | 690 statuses.append( |
| 687 MailNotifier(fromaddr=self._active_master.from_address, | 691 MailNotifier(fromaddr=self._active_master.from_address, |
| 688 mode='problem', | 692 mode='problem', |
| 689 sendToInterestedUsers=send_to_interested_useres, | 693 sendToInterestedUsers=send_to_interested_useres, |
| 690 extraRecipients=extra_recipients, | 694 extraRecipients=extra_recipients, |
| 691 lookup=master_utils.FilterDomain(), | 695 lookup=master_utils.FilterDomain(), |
| 692 builders=notifying_builders)) | 696 builders=notifying_builders)) |
| 693 return statuses | 697 return statuses |
| 694 | 698 |
| OLD | NEW |