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

Side by Side Diff: scripts/master/factory/chromeos_commands.py

Issue 3777004: Fix imports and bring over a missing file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 10 years, 2 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2010 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 """Set of utilities to add commands to a buildbot factory.""" 6 """Set of utilities to add commands to a buildbot factory."""
7 7
8 from buildbot.steps import shell 8 from buildbot.steps import shell
9 from factory import commands 9 from master.factory import commands
10 from log_parser import retcode_command 10 from master.log_parser import retcode_command
11 from log_parser import archive_command 11 from master.log_parser import archive_command
12 12
13 import chromium_config as config 13 from common import chromium_utils
14 import chromium_utils
15 14
16 import os 15 import os
17 16
18 from buildbot.process.properties import WithProperties 17 from buildbot.process.properties import WithProperties
19 18
20 19
21 class ChromeOSCommands(commands.FactoryCommands): 20 class ChromeOSCommands(commands.FactoryCommands):
22 """Encapsulates methods to add ChromeOS commands to a buildbot factory.""" 21 """Encapsulates methods to add ChromeOS commands to a buildbot factory."""
23 22
24 def __init__(self, factory=None, identifier=None, target=None, 23 def __init__(self, factory=None, identifier=None, target=None,
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 """Basic ShellCommand with support for adding a link for display.""" 592 """Basic ShellCommand with support for adding a link for display."""
594 593
595 def __init__(self, **kwargs): 594 def __init__(self, **kwargs):
596 shell.ShellCommand.__init__(self, **kwargs) 595 shell.ShellCommand.__init__(self, **kwargs)
597 self.base_url = kwargs['base_url'] 596 self.base_url = kwargs['base_url']
598 self.link_text = kwargs['link_text'] 597 self.link_text = kwargs['link_text']
599 598
600 def createSummary(self, log): 599 def createSummary(self, log):
601 if (self.base_url and self.link_text): 600 if (self.base_url and self.link_text):
602 self.addURL(self.link_text, self.base_url) 601 self.addURL(self.link_text, self.base_url)
OLDNEW
« no previous file with comments | « scripts/master/factory/chromeos_build_factory.py ('k') | scripts/master/factory/chromeos_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698