Skip to content

Instantly share code, notes, and snippets.

@tomprince
Created April 7, 2011 00:40
Show Gist options
  • Save tomprince/906828 to your computer and use it in GitHub Desktop.
Save tomprince/906828 to your computer and use it in GitHub Desktop.
from buildbot.steps.slave import FileExists
from buildbot.status.builder import SUCCESS
class SkipIfFileExists(FileExists):
def __init__(self, **kwargs):
FileExists.__init__(self, **kwargs)
def finished(self, results):
if results == SUCCESS:
self.build.terminate = True
FileExists.finished(self, SUCCESS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment