當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。