scripts: ci: check_compliance: Order list alphabetically

Print the compliance checks alphabetically by default.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-10-15 12:14:26 +02:00 committed by Anas Nashif
commit f7e130f982

View file

@ -1717,7 +1717,7 @@ def _main(args):
logger.info(f'Running tests on commit range {COMMIT_RANGE}')
if args.list:
for testcase in inheritors(ComplianceTest):
for testcase in sorted(inheritors(ComplianceTest), key=lambda x: x.name):
print(testcase.name)
return 0