Created
December 22, 2008 02:20
-
-
Save djmitche/38834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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