Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
 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
Exemple #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
 def tearDown(self):
     try:
         import boto
         import boto.exception  # @UnusedImport
     except ImportError:
         pass
     else:
         sys.modules["buildbot.ec2buildslave"].boto = boto
     return RunMixin.tearDown(self)
Exemple #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)
Exemple #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
Exemple #11
0
 def setUp(self):
     RunMixin.setUp(self)
     return self.master.loadConfig(config_1)
Exemple #12
0
 def tearDown(self):
     stopHTTPLog()
     warnings.resetwarnings()
     return RunMixin.tearDown(self)
Exemple #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
Exemple #14
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(version_config)
     d.addCallback(lambda ign: self.connectSlave(["quick"]))
     return d
Exemple #15
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(config_3)
     d.addCallback(lambda ign: self.connectSlave(["b1"]))
     return d
Exemple #16
0
 def setUp(self):
     RunMixin.setUp(self)
     return self.master.loadConfig(config_1)
Exemple #17
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(version_config)
     d.addCallback(lambda ign: self.connectSlave(["quick"]))
     return d
Exemple #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
Exemple #19
0
 def setUp(self):
     RunMixin.setUp(self)
     d = self.master.loadConfig(config_3)
     d.addCallback(lambda ign: self.connectSlave(["b1"]))
     return d
Exemple #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)
Exemple #21
0
 def tearDown(self):
     stopHTTPLog()
     warnings.resetwarnings()
     return RunMixin.tearDown(self)