Filtering out commits that only change gdb/doc, or that only change ChangeLog files
This commit is contained in:
parent
0685c06b6f
commit
a93cd2772f
1 changed files with 12 additions and 2 deletions
14
master.cfg
14
master.cfg
|
@ -687,20 +687,30 @@ class RunTestGDBIndexBuildBSD (RunTestGDBIndexBuild, RunTestGDBBSD_Common):
|
||||||
"""Testing with the "cc-with-tweaks.sh" passing -i. FIXME: include bitness here."""
|
"""Testing with the "cc-with-tweaks.sh" passing -i. FIXME: include bitness here."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# For now, we only support testing the "master" branch.
|
# All branches that are going to be watched.
|
||||||
all_gdb_filter = ChangeFilter (branch_fn = should_watch_branch)
|
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
|
||||||
|
|
||||||
files_ignored_re = re.compile ("(cpu/|elfcpp/|gas/|gold/|gprof/|ld/|texinfo/).*")
|
files_ignored_re = re.compile ("(cpu/|elfcpp/|gas/|gold/|gprof/|ld/|texinfo/|gdb/doc/).*")
|
||||||
|
|
||||||
def DefaultGDBfileIsImportant (change):
|
def DefaultGDBfileIsImportant (change):
|
||||||
"""Implementation of fileIsImportant method, in order to decide which
|
"""Implementation of fileIsImportant method, in order to decide which
|
||||||
changes to build on GDB."""
|
changes to build on GDB."""
|
||||||
|
only_changelog = True
|
||||||
|
|
||||||
if 'GDB Administrator' in change.who:
|
if 'GDB Administrator' in change.who:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Filter out commits that only modify the ChangeLog files.
|
||||||
|
for filename in change.files:
|
||||||
|
if 'ChangeLog' not in filename:
|
||||||
|
only_changelog = False
|
||||||
|
|
||||||
|
if only_changelog:
|
||||||
|
return False
|
||||||
|
|
||||||
for filename in change.files:
|
for filename in change.files:
|
||||||
if not re.match (files_ignored_re, filename):
|
if not re.match (files_ignored_re, filename):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue