[Buildbot-commits] buildbot/buildbot/test runutils.py, 1.21, 1.22 test_steps.py, 1.43, 1.44

Brian Warner warner at users.sourceforge.net
Sun Aug 12 22:22:43 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6009/buildbot/test

Modified Files:
	runutils.py test_steps.py 
Log Message:
[project @ BuildSlave: keep track of lastMessageReceived for each slave]

Original author: warner at lothar.com
Date: 2007-08-12 22:15:19+00:00

Index: runutils.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/runutils.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- runutils.py	3 Jul 2007 17:25:08 -0000	1.21
+++ runutils.py	12 Aug 2007 22:22:41 -0000	1.22
@@ -6,6 +6,7 @@
 
 from buildbot import master, interfaces
 from buildbot.slave import bot
+from buildbot.buildslave import BuildSlave
 from buildbot.process.builder import Builder
 from buildbot.process.base import BuildRequest, Build
 from buildbot.process.buildstep import BuildStep
@@ -405,6 +406,7 @@
     workdir = "build"
     def makeStep(self, factory, **kwargs):
         step = makeBuildStep(self.masterbase, factory, **kwargs)
+        step.setBuildSlave(BuildSlave("name", "password"))
         step.setDefaultWorkdir(self.workdir)
         return step
 

Index: test_steps.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_steps.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- test_steps.py	7 Aug 2007 19:21:40 -0000	1.43
+++ test_steps.py	12 Aug 2007 22:22:41 -0000	1.44
@@ -21,6 +21,7 @@
 
 from buildbot.sourcestamp import SourceStamp
 from buildbot.process import buildstep, base, factory
+from buildbot.buildslave import BuildSlave
 from buildbot.steps import shell, source, python
 from buildbot.status import builder
 from buildbot.status.builder import SUCCESS, FAILURE
@@ -100,6 +101,7 @@
         buildstep.RemoteCommand.commandCounter[0] = 3
         c = MyShellCommand(workdir=dir, command=cmd, timeout=10)
         c.setBuild(self.build)
+        c.setBuildSlave(BuildSlave("name", "password"))
         self.assertEqual(self.remote.events, self.expectedEvents)
         c.step_status = self.build_status.addStepWithName("myshellcommand")
         d = c.startStep(self.remote)





More information about the Commits mailing list