本文整理汇总了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)
示例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)
示例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)
示例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)