本文整理汇总了Python中buildbot.test.runutils.RunMixin.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python RunMixin.setUp方法的具体用法?Python RunMixin.setUp怎么用?Python RunMixin.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类buildbot.test.runutils.RunMixin
的用法示例。
在下文中一共展示了RunMixin.setUp方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
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
示例2: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
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
示例3: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
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
示例4: boto_setUp1
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
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
示例5: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
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
示例6: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
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
示例7: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
def setUp(self):
self._db = connection.creation.create_test_db()
return RunMixin.setUp(self)
示例8: setUp
# 需要导入模块: from buildbot.test.runutils import RunMixin [as 别名]
# 或者: from buildbot.test.runutils.RunMixin import setUp [as 别名]
def setUp(self):
RunMixin.setUp(self)
self.master.loadConfig(version_config)
self.master.startService()
d = self.connectSlave(["quick"])
return d