diff --git a/master.cfg b/master.cfg index 3f67f68..43ae7d3 100644 --- a/master.cfg +++ b/master.cfg @@ -687,20 +687,30 @@ class RunTestGDBIndexBuildBSD (RunTestGDBIndexBuild, RunTestGDBBSD_Common): """Testing with the "cc-with-tweaks.sh" passing -i. FIXME: include bitness here.""" 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) def DefaultGDBCanStartBuild (builder, buildslave, buildrequest): 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): """Implementation of fileIsImportant method, in order to decide which changes to build on GDB.""" + only_changelog = True + if 'GDB Administrator' in change.who: 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: if not re.match (files_ignored_re, filename): return True