Changing the logic for filtering commits
This commit is contained in:
parent
bbee800c8d
commit
c7a8113732
1 changed files with 2 additions and 2 deletions
|
@ -598,7 +598,7 @@ all_gdb_filter = ChangeFilter (branch_fn = should_watch_branch)
|
||||||
def DefaultGDBCanStartBuild (builder, buildslave, buildrequest):
|
def DefaultGDBCanStartBuild (builder, buildslave, buildrequest):
|
||||||
return not builder.building
|
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):
|
def DefaultGDBfileIsImportant (change):
|
||||||
"""Implementation of fileIsImportant method, in order to decide which
|
"""Implementation of fileIsImportant method, in order to decide which
|
||||||
|
@ -607,7 +607,7 @@ changes to build on GDB."""
|
||||||
return False
|
return False
|
||||||
|
|
||||||
for filename in change.files:
|
for filename in change.files:
|
||||||
if re.match (tests_accepted_re, filename):
|
if not re.match (files_ignored_re, filename):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue