| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Set of utilities to add commands to a buildbot factory. | 5 """Set of utilities to add commands to a buildbot factory. |
| 6 | 6 |
| 7 This is based on commands.py and adds chromium-specific commands.""" | 7 This is based on commands.py and adds chromium-specific commands.""" |
| 8 | 8 |
| 9 from buildbot.steps import shell | 9 from buildbot.steps import shell |
| 10 | 10 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 '"print(1+2)"'] | 212 '"print(1+2)"'] |
| 213 self.AddTestStep(shell.ShellCommand, 'Simple Leak Check', cmd, | 213 self.AddTestStep(shell.ShellCommand, 'Simple Leak Check', cmd, |
| 214 timeout=300, workdir='build/v8/') | 214 timeout=300, workdir='build/v8/') |
| 215 | 215 |
| 216 def AddArchiveBuild(self, mode='dev', show_url=True, | 216 def AddArchiveBuild(self, mode='dev', show_url=True, |
| 217 extra_archive_paths=None): | 217 extra_archive_paths=None): |
| 218 """Adds a step to the factory to archive a build.""" | 218 """Adds a step to the factory to archive a build.""" |
| 219 cmd = [self._python, self._v8archive_tool, '--target', self._target] | 219 cmd = [self._python, self._v8archive_tool, '--target', self._target] |
| 220 self.AddTestStep(shell.ShellCommand, 'Archiving', cmd, | 220 self.AddTestStep(shell.ShellCommand, 'Archiving', cmd, |
| 221 workdir='build/v8') | 221 workdir='build/v8') |
| 222 | |
| 223 def AddMoveExtracted(self): | |
| 224 """Adds a step to download and extract a previously archived build.""" | |
| 225 cmd = ('cp -R sconsbuild/release/* v8/.') | |
| 226 self._factory.addStep(shell.ShellCommand, | |
| 227 description='Move extracted to bleeding', | |
| 228 timeout=600, | |
| 229 workdir='build', | |
| 230 command=cmd) | |
| OLD | NEW |