[Buildbot-commits] buildbot/buildbot/process step.py,1.86,1.87

Brian Warner warner at users.sourceforge.net
Fri Jun 2 03:32:25 UTC 2006


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

Modified Files:
	step.py 
Log Message:
[project @ set ShellCommand.flunkOnFailure=True by default]

Original author: warner at lothar.com
Date: 2006-06-02 03:23:23

Index: step.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/step.py,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- step.py	22 May 2006 00:50:31 -0000	1.86
+++ step.py	2 Jun 2006 03:32:23 -0000	1.87
@@ -879,6 +879,9 @@
     the exit code of that command is non-zero, SUCCESS otherwise. To change
     this behavior, override my .evaluateCommand method.
 
+    By default, a failure of this step will mark the whole build as FAILURE.
+    To override this, give me an argument of flunkOnFailure=False .
+
     I create a single Log named 'log' which contains the output of the
     command. To create additional summary Logs, override my .createSummary
     method.
@@ -900,6 +903,10 @@
     descriptionDone = None # alternate description when the step is complete
     command = None # set this to a command, or set in kwargs
 
+    # override this on a specific ShellCommand if you want to let it fail
+    # without dooming the entire build to a status of FAILURE
+    flunkOnFailure = True
+
     def __init__(self, workdir,
                  description=None, descriptionDone=None,
                  command=None,





More information about the Commits mailing list