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


Python queueengine.QueueEngine类代码示例

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


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

示例1: test_trivial

 def test_trivial(self):
     delegate = LoggingDelegate(self)
     work_queue = QueueEngine("trivial-queue", delegate, threading.Event())
     work_queue.run()
     self.assertEquals(delegate._callbacks, LoggingDelegate.expected_callbacks)
     self.assertTrue(os.path.exists(os.path.join(self.temp_dir, "queue_log_path")))
     self.assertTrue(os.path.exists(os.path.join(self.temp_dir, "work_log_path", "work_item.log")))
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:7,代码来源:queueengine_unittest.py

示例2: run_and_handle_errors

 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,代码行数:8,代码来源:stepsequence.py

示例3: handle_script_error

 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,代码行数:9,代码来源:earlywarningsystem.py

示例4: run_and_handle_errors

 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,代码行数:9,代码来源:stepsequence.py

示例5: run_and_handle_errors

 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,代码行数:11,代码来源:stepsequence.py

示例6: test_sleep_message

 def test_sleep_message(self):
     engine = QueueEngine("test", None, None)
     engine._now = lambda: datetime.datetime(2010, 1, 1)
     expected_sleep_message = "MESSAGE Sleeping until 2010-01-01 00:02:00 (2 mins)."
     self.assertEqual(engine._sleep_message("MESSAGE"), expected_sleep_message)
开发者ID:Andolamin,项目名称:LunaSysMgr,代码行数:5,代码来源:queueengine_unittest.py

示例7: test_now

 def test_now(self):
     """Make sure there are no typos in the QueueEngine.now() method."""
     engine = QueueEngine("test", None, None)
     self.assertTrue(isinstance(engine._now(), datetime.datetime))
开发者ID:Andolamin,项目名称:LunaSysMgr,代码行数:4,代码来源:queueengine_unittest.py

示例8: __init__

 def __init__(self, delegate):
     QueueEngine.__init__(self, "fast-queue", delegate, threading.Event())
开发者ID:Andolamin,项目名称:LunaSysMgr,代码行数:2,代码来源:queueengine_unittest.py


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