当前位置: 首页>>代码示例>>Python>>正文


Python step.ShellCommand类代码示例

本文整理汇总了Python中buildbot.process.step.ShellCommand的典型用法代码示例。如果您正苦于以下问题:Python ShellCommand类的具体用法?Python ShellCommand怎么用?Python ShellCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ShellCommand类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: start

 def start(self):
     urlGetter = LatestFileURL(self.url, self.filenameSearchString)
     self.filename = urlGetter.getLatestFilename()
     self.fileURL = self.url + self.filename
     if self.branch:
         self.setProperty("fileURL", self.fileURL)
         self.setProperty("filename", self.filename)
     self.setCommand(["wget",  "-nv", "-N", self.fileURL])
     ShellCommand.start(self)
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:9,代码来源:perfrunner.py

示例2: __init__

 def __init__(self, **kwargs):
     self.filename = ""
     self.branch = ""
     if 'branch' in kwargs:
         self.branch = kwargs['branch']
     if 'filename' in kwargs:
         self.filename = kwargs['filename']
     if not 'command' in kwargs:
         kwargs['command'] = ["tar", "-zvxf"]
     ShellCommand.__init__(self, **kwargs)
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:10,代码来源:perfrunner.py

示例3: __init__

 def __init__(self, **kwargs):
     if not 'platform' in kwargs:
         return FAILURE
     self.platform = kwargs['platform']
     if 'dir' in kwargs:
         self.dir = kwargs['dir']
     if self.platform.startswith('win'):
         self.command = r'if not exist ' + self.dir + r' mkdir ' + self.dir
     else:
         self.command = ['mkdir', '-p', self.dir]
     ShellCommand.__init__(self, **kwargs)
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:11,代码来源:mozbuild.py

示例4: __init__

 def __init__(self, **kwargs):
     self.flunkOnFailure = True
     self.warnOnWarnings = True
     self.warnOnFailure = True
     
     if 'buildType' in kwargs:
         self.buildType = kwargs['buildType']
     else:
         self.buildType = "opt"
     if 'branch' in kwargs:
         self.branch = kwargs['branch']
     else:
         self.branch = "1.9.0"
     ShellCommand.__init__(self, **kwargs)
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:14,代码来源:sisyphus.py

示例5: evaluateCommand

 def evaluateCommand(self, cmd):
     superResult = ShellCommand.evaluateCommand(self, cmd)
     if SUCCESS != superResult:
         return FAILURE
     if None != re.search('ERROR', cmd.logs['stdio'].getText()):
         return FAILURE
     return SUCCESS
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:7,代码来源:perfrunner.py

示例6: evaluateCommand

 def evaluateCommand(self, cmd):
     superResult = ShellCommand.evaluateCommand(self, cmd)
     if SUCCESS != superResult:
         return WARNINGS
     if re.search('UNEXPECTED', cmd.logs['stdio'].getText()):
         return WARNINGS
     return SUCCESS
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:7,代码来源:mozbuild.py


注:本文中的buildbot.process.step.ShellCommand类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。