def contains_bionicbb(change_id, patch_set): files = gerrit.get_files_for_revision(change_id, patch_set) return any('tools/bionicbb' in f for f in files)
def contains_cleanspec(change_id, patch_set): files = gerrit.get_files_for_revision(change_id, patch_set) return 'CleanSpec.mk' in [os.path.basename(f) for f in files]