Skip to content

Instantly share code, notes, and snippets.

@djmitche
Created December 22, 2008 02:20
Show Gist options
  • Save djmitche/38834 to your computer and use it in GitHub Desktop.
Save djmitche/38834 to your computer and use it in GitHub Desktop.
def isInteresting(change):
''' Function passed to the Scheduler to decide if a particular change
is worth testing. for us, if "NOTEST" or "NO-TEST" is found in the first
line of the subversion log, the change is not interesting, and we return
false. All other changes are interesting.
change: a change instance.
'''
# This should be a string
checkin_log=change.comments
if "NOTEST" in checkin_log or "NO-TEST" in checkin_log:
return False
else:
return True
# ...
c['schedulers'].append(
Scheduler(name="mktarball-trunk",
branch=None,
fileIsImportant=isInteresting,
treeStableTimer=600,
builderNames=['@@mktarball']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment