Beispiel #1
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(config_1)
     d.addCallback(lambda res: self.connectSlave(
                 ["full1a", "full1b", "full1c", "full1d"],
                 "bot1"))
     d.addCallback(lambda res: self.connectSlave(["full2a", "full2b"], "bot2"))
     return d
Beispiel #2
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(self.config)
     d.addCallback(lambda res: self.connectSlave(
                 ["excl_A", "excl_B", "count_A", "count_B"], "bot1"))
     d.addCallback(lambda res: self.connectSlave(
                 ["excl_A", "excl_B", "count_A", "count_B"], "bot2"))
     return d
Beispiel #3
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(self.config)
     d.addCallback(lambda res: self.connectSlave(
         ["excl_A", "excl_B", "count_A", "count_B"], "bot1"))
     d.addCallback(lambda res: self.connectSlave(
         ["excl_A", "excl_B", "count_A", "count_B"], "bot2"))
     return d
Beispiel #4
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(config_1)
     d.addCallback(lambda res: self.connectSlave(
         ["full1a", "full1b", "full1c", "full1d"], "bot1"))
     d.addCallback(
         lambda res: self.connectSlave(["full2a", "full2b"], "bot2"))
     return d
Beispiel #5
0
 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
Beispiel #6
0
 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
Beispiel #7
0
 def setUp(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     d = self.master.loadConfig(latent_config)
     def _started(ign):
         self.bot1 = self.master.botmaster.slaves['bot1']
         self.bot2 = self.master.botmaster.slaves['bot2']
         self.bot3 = self.master.botmaster.slaves['bot3']
         self.bot1.testcase = self
         self.bot2.testcase = self
         self.b1 = self.master.botmaster.builders['b1']
     d.addCallback(_started)
     return d
Beispiel #8
0
 def tearDown(self):
     try:
         import boto
         import boto.exception  # @UnusedImport
     except ImportError:
         pass
     else:
         sys.modules["buildbot.ec2buildslave"].boto = boto
     return RunMixin.tearDown(self)
Beispiel #9
0
 def tearDown(self):
     try:
         import boto
         import boto.exception #@UnusedImport
     except ImportError:
         pass
     else:
         sys.modules['buildbot.ec2buildslave'].boto = boto
     return RunMixin.tearDown(self)
Beispiel #10
0
    def setUp(self):
        # debugging
        #import twisted.internet.base
        #twisted.internet.base.DelayedCall.debug = True
        # debugging
        RunMixin.setUp(self)
        d = self.master.loadConfig(latent_config)

        def _started(ign):
            self.bot1 = self.master.botmaster.slaves['bot1']
            self.bot2 = self.master.botmaster.slaves['bot2']
            self.bot3 = self.master.botmaster.slaves['bot3']
            self.bot1.testcase = self
            self.bot2.testcase = self
            self.b1 = self.master.botmaster.builders['b1']

        d.addCallback(_started)
        return d
Beispiel #11
0
 def setUp(self):
     RunMixin.setUp(self)
     return self.master.loadConfig(config_1)
Beispiel #12
0
 def tearDown(self):
     stopHTTPLog()
     warnings.resetwarnings()
     return RunMixin.tearDown(self)
Beispiel #13
0
 def setUp(self):
     warnings.filterwarnings("ignore", category=DeprecationWarning)
     RunMixin.setUp(self)
     d = self.master.loadConfig(geturl_config)
     d.addCallback(lambda ign: self.connectSlave(["b1"]))
     return d
Beispiel #14
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(version_config)
     d.addCallback(lambda ign: self.connectSlave(["quick"]))
     return d
Beispiel #15
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(config_3)
     d.addCallback(lambda ign: self.connectSlave(["b1"]))
     return d
Beispiel #16
0
 def setUp(self):
     RunMixin.setUp(self)
     return self.master.loadConfig(config_1)
Beispiel #17
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(version_config)
     d.addCallback(lambda ign: self.connectSlave(["quick"]))
     return d
Beispiel #18
0
 def setUp(self):
     warnings.filterwarnings("ignore", category=DeprecationWarning)
     RunMixin.setUp(self)
     d = self.master.loadConfig(geturl_config)
     d.addCallback(lambda ign: self.connectSlave(["b1"]))
     return d
Beispiel #19
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(config_3)
     d.addCallback(lambda ign: self.connectSlave(["b1"]))
     return d
Beispiel #20
0
 def tearDown(self):
     RunMixin.tearDown(self)
     # there are extant builders that will still try to write to this
     # directory, leading to a test failure -> test disabled
     shutil.rmtree(self.basedir)
Beispiel #21
0
 def tearDown(self):
     stopHTTPLog()
     warnings.resetwarnings()
     return RunMixin.tearDown(self)