metadata: sort result summary

This CL makes scan.py to sort result summary (keyed on the type of
validation results), so the output summary will have a predictable
order for easier diffing.

Change-Id: I0eda8a439e159eae667729512424b813eb0f5e11
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5390925
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Anne Redulla <aredulla@google.com>
changes/25/5390925/2
Jiewei Qian 11 months ago committed by LUCI CQ
parent 2dbb3f399a
commit 77d30ab4f8

@ -96,7 +96,7 @@ def main() -> None:
count = len(results)
plural = "s" if count > 1 else ""
print(f"\n {count} issue{plural}: {summary_key}")
for result in results:
for result in sorted(results):
print(f" {result}")
print(f"\n\n{invalid_file_count} / {file_count} metadata files are "

Loading…
Cancel
Save