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


Python QueueEngine.exit_after_handled_error方法代码示例

本文整理汇总了Python中webkitpy.tool.bot.queueengine.QueueEngine.exit_after_handled_error方法的典型用法代码示例。如果您正苦于以下问题:Python QueueEngine.exit_after_handled_error方法的具体用法?Python QueueEngine.exit_after_handled_error怎么用?Python QueueEngine.exit_after_handled_error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在webkitpy.tool.bot.queueengine.QueueEngine的用法示例。


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

示例1: run_and_handle_errors

# 需要导入模块: from webkitpy.tool.bot.queueengine import QueueEngine [as 别名]
# 或者: from webkitpy.tool.bot.queueengine.QueueEngine import exit_after_handled_error [as 别名]
 def run_and_handle_errors(self, tool, options, state=None):
     if not state:
         state = {}
     try:
         self._run(tool, options, state)
     except CheckoutNeedsUpdate, e:
         log("Commit failed because the checkout is out of date.  Please update and try again.")
         QueueEngine.exit_after_handled_error(e)
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:10,代码来源:stepsequence.py

示例2: handle_script_error

# 需要导入模块: from webkitpy.tool.bot.queueengine import QueueEngine [as 别名]
# 或者: from webkitpy.tool.bot.queueengine.QueueEngine import exit_after_handled_error [as 别名]
 def handle_script_error(cls, tool, state, script_error):
     is_svn_apply = script_error.command_name() == "svn-apply"
     status_id = cls._update_status_for_script_error(tool, state, script_error, is_error=is_svn_apply)
     if is_svn_apply:
         QueueEngine.exit_after_handled_error(script_error)
     results_link = tool.status_server.results_url_for_status(status_id)
     message = "Attachment %s did not build on %s:\nBuild output: %s" % (state["patch"].id(), cls.port_name, results_link)
     tool.bugs.post_comment_to_bug(state["patch"].bug_id(), message, cc=cls.watchers)
     exit(1)
开发者ID:mikezit,项目名称:Webkit_Code,代码行数:11,代码来源:earlywarningsystem.py

示例3: run_and_handle_errors

# 需要导入模块: from webkitpy.tool.bot.queueengine import QueueEngine [as 别名]
# 或者: from webkitpy.tool.bot.queueengine.QueueEngine import exit_after_handled_error [as 别名]
 def run_and_handle_errors(self, tool, options, state=None):
     if not state:
         state = {}
     try:
         self._run(tool, options, state)
     except CheckoutNeedsUpdate, e:
         log("Commit failed because the checkout is out of date.  Please update and try again.")
         log("You can pass --no-build to skip building/testing after update if you believe the new commits did not affect the results.")
         QueueEngine.exit_after_handled_error(e)
开发者ID:mikezit,项目名称:Webkit_Code,代码行数:11,代码来源:stepsequence.py

示例4: run_and_handle_errors

# 需要导入模块: from webkitpy.tool.bot.queueengine import QueueEngine [as 别名]
# 或者: from webkitpy.tool.bot.queueengine.QueueEngine import exit_after_handled_error [as 别名]
 def run_and_handle_errors(self, tool, options, state=None):
     if not state:
         state = {}
     try:
         self._run(tool, options, state)
     except CheckoutNeedsUpdate, e:
         log("Commit failed because the checkout is out of date.  Please update and try again.")
         if options.parent_command:
             command = tool.command_by_name(options.parent_command)
             command.handle_checkout_needs_update(tool, state, options, e)
         QueueEngine.exit_after_handled_error(e)
开发者ID:Andersbakken,项目名称:check-coding-style,代码行数:13,代码来源:stepsequence.py


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