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


Python runutils.RunMixin类代码示例

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


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

示例1: setUp

 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["b1"])
     d.addCallback(lambda res: self.connectSlave(["b1"], "bot2"))
     return d
开发者ID:gescalante,项目名称:buildbot,代码行数:7,代码来源:test_slaves.py

示例2: setUp

 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["slowpass", "fastfail", "fastpass",
                            "b3", "b4", "b5"])
     return d
开发者ID:abyx,项目名称:buildbot,代码行数:7,代码来源:test_dependencies.py

示例3: setUp

 def setUp(self):
     warnings.filterwarnings("ignore", category=DeprecationWarning)
     RunMixin.setUp(self)
     self.master.loadConfig(geturl_config)
     self.master.startService()
     d = self.connectSlave(["b1"])
     return d
开发者ID:pythonologist,项目名称:buildbot,代码行数:7,代码来源:test_web.py

示例4: boto_setUp1

 def boto_setUp1(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     self.boto = boto = Boto(self)
     if 'boto' not in sys.modules:
         sys.modules['boto'] = boto
         sys.modules['boto.exception'] = boto.exception
     if 'buildbot.ec2buildslave' in sys.modules:
         sys.modules['buildbot.ec2buildslave'].boto = boto
开发者ID:MahatmaManic,项目名称:buildbot,代码行数:12,代码来源:test_ec2buildslave.py

示例5: setUp

 def setUp(self):
     N = 'test_builder'
     RunMixin.setUp(self)
     self.reqs = [BuildRequest("forced build", SourceStamp(), N)
                  for i in range(4)]
     self.events = []
     for i in range(4):
         self.reqs[i].number = i
         self.reqs[i].events = self.events
     d = self.master.loadConfig(self.config)
     d.addCallback(lambda res: self.master.startService())
     d.addCallback(lambda res: self.connectSlaves(["bot1", "bot2"],
                                                  ["excl_A", "excl_B",
                                                   "count_A", "count_B"]))
     return d
开发者ID:abyx,项目名称:buildbot,代码行数:15,代码来源:test_locks.py

示例6: tearDown

 def tearDown(self):
     try:
         import boto
         import boto.exception
     except ImportError:
         pass
     else:
         sys.modules['buildbot.ec2buildslave'].boto = boto
     return RunMixin.tearDown(self)
开发者ID:MahatmaManic,项目名称:buildbot,代码行数:9,代码来源:test_ec2buildslave.py

示例7: setUp

    def setUp(self):
        RunMixin.setUp(self)
        # verify that disconnecting the slave during a build properly
        # terminates the build
        m = self.master
        s = self.status
        c = self.control

        m.loadConfig(config_2)
        m.readConfig = True
        m.startService()

        self.failUnlessEqual(s.getBuilderNames(), ["dummy", "testdummy"])
        self.s1 = s1 = s.getBuilder("dummy")
        self.failUnlessEqual(s1.getName(), "dummy")
        self.failUnlessEqual(s1.getState(), ("offline", []))
        self.failUnlessEqual(s1.getCurrentBuilds(), [])
        self.failUnlessEqual(s1.getLastFinishedBuild(), None)
        self.failUnlessEqual(s1.getBuild(-1), None)

        d = self.connectSlaveFastTimeout()
        d.addCallback(self._setup_disconnect2_1)
        return d
开发者ID:gescalante,项目名称:buildbot,代码行数:23,代码来源:test_run.py

示例8: tearDown

 def tearDown(self):
     stopHTTPLog()
     warnings.resetwarnings()
     return RunMixin.tearDown(self)
开发者ID:pythonologist,项目名称:buildbot,代码行数:4,代码来源:test_web.py

示例9: tearDown

 def tearDown(self):
   connection.creation.destroy_test_db(self.old_name)
   return RunMixin.tearDown(self)
开发者ID:Pike,项目名称:locale-inspector,代码行数:3,代码来源:django_utils.py

示例10: setUp

 def setUp(self):
   self._db = connection.creation.create_test_db()
   return RunMixin.setUp(self)
开发者ID:Pike,项目名称:locale-inspector,代码行数:3,代码来源:django_utils.py

示例11: tearDown

 def tearDown(self):
     stopHTTPLog()
     return RunMixin.tearDown(self)
开发者ID:MahatmaManic,项目名称:buildbot,代码行数:3,代码来源:test_web.py

示例12: setUp

 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(version_config)
     self.master.startService()
     d = self.connectSlave(["quick"])
     return d
开发者ID:gescalante,项目名称:buildbot,代码行数:6,代码来源:test_steps.py


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