[Buildbot-commits] buildbot/buildbot/steps shell.py,1.16,1.17
Brian Warner
warner at users.sourceforge.net
Fri Mar 21 01:34:29 UTC 2008
Update of /cvsroot/buildbot/buildbot/buildbot/steps
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21723/buildbot/steps
Modified Files:
shell.py
Log Message:
[project @ steps.shell: remove redundant definition of render()]
Original author: warner at lothar.com
Date: 2008-03-21 01:34:01+00:00
Index: shell.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/shell.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- shell.py 20 Mar 2008 23:57:09 -0000 1.16
+++ shell.py 21 Mar 2008 01:34:27 -0000 1.17
@@ -8,19 +8,6 @@
# for existing configurations that import WithProperties from here
from buildbot.process.buildstep import WithProperties
-def render(s, build):
- """Return a string based on s and build that is suitable for use
- in a running BuildStep. If s is a string, return s. If s is a
- WithProperties object, return the result of s.render(build).
- Otherwise, return str(s).
- """
- if isinstance(s, (str, unicode)):
- return s
- elif isinstance(s, WithProperties):
- return s.render(build)
- else:
- return str(s)
-
class ShellCommand(LoggingBuildStep):
"""I run a single shell command on the buildslave. I return FAILURE if
the exit code of that command is non-zero, SUCCESS otherwise. To change
More information about the Commits
mailing list