Merge "Improve script by counting results found."

This commit is contained in:
Zuul
2019-02-01 13:52:19 +00:00
committed by Gerrit Code Review

View File

@@ -70,13 +70,19 @@ def main(args=sys.argv[1:]):
)
args = parser.parse_args(args)
last_team = ''
for team, deliverable in in_governance_but_not_released(args):
missing = in_governance_but_not_released(args)
for team, deliverable in missing:
if last_team != team:
print('\n' + team + ':')
last_team = team
output_format = "- " if args.yaml else ""
print("{}{}".format(output_format, deliverable))
if missing:
print('-' * 50)
print('{} project(s) missing'.format(len(missing)))
print('-' * 50)
if __name__ == '__main__':
main()