本文整理汇总了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
示例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
示例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
示例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
示例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
示例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)
示例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
示例8: tearDown
def tearDown(self):
stopHTTPLog()
warnings.resetwarnings()
return RunMixin.tearDown(self)
示例9: tearDown
def tearDown(self):
connection.creation.destroy_test_db(self.old_name)
return RunMixin.tearDown(self)
示例10: setUp
def setUp(self):
self._db = connection.creation.create_test_db()
return RunMixin.setUp(self)
示例11: tearDown
def tearDown(self):
stopHTTPLog()
return RunMixin.tearDown(self)
示例12: setUp
def setUp(self):
RunMixin.setUp(self)
self.master.loadConfig(version_config)
self.master.startService()
d = self.connectSlave(["quick"])
return d