Skip to content

Commit b2c1f51

Browse files
mbrossardmathias-arm
authored andcommitted
Use exit code to signal failure + copyright
1 parent 8bdf0d0 commit b2c1f51

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/projects_sort.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# DAPLink Interface Firmware
44
# Copyright (c) 2009-2021, Arm Limited, All Rights Reserved
5+
# Copyright (c) 2021 Mathias Brossard
56
# SPDX-License-Identifier: Apache-2.0
67
#
78
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -48,17 +49,18 @@
4849
boards.append(p)
4950

5051
hics.sort()
52+
boards.sort()
53+
all_sorted = hics + boards
54+
5155
for p in hics:
5256
print(p)
5357
print()
54-
boards.sort()
5558
for p in boards:
5659
print(p)
5760

58-
all_sorted = hics + boards
5961
for i in range(len(project_list)):
6062
if project_list[i] != all_sorted[i]:
6163
sys.stderr.write("Found '%s' expected '%s'\n" % (project_list[i], all_sorted[i]))
62-
break
64+
exit(-1)
6365

6466
exit(0)

0 commit comments

Comments
 (0)