Changing the logic for filtering commits

This commit is contained in:
Sergio Durigan Junior 2015-02-04 04:52:16 -05:00
parent bbee800c8d
commit c7a8113732

View file

@ -598,7 +598,7 @@ all_gdb_filter = ChangeFilter (branch_fn = should_watch_branch)
def DefaultGDBCanStartBuild (builder, buildslave, buildrequest):
return not builder.building
tests_accepted_re = re.compile ("(gdb/|bfd/|binutils/).*")
files_ignored_re = re.compile ("(cpu/|elfcpp/|gas/|gold/|gprof/|ld/|sim/|texinfo/).*")
def DefaultGDBfileIsImportant (change):
"""Implementation of fileIsImportant method, in order to decide which
@ -607,7 +607,7 @@ changes to build on GDB."""
return False
for filename in change.files:
if re.match (tests_accepted_re, filename):
if not re.match (files_ignored_re, filename):
return True
return False