Skip to content

Commit

Permalink
Use exit code to signal failure + copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard authored and mathias-arm committed Oct 6, 2021
1 parent 8bdf0d0 commit b2c1f51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/projects_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# DAPLink Interface Firmware
# Copyright (c) 2009-2021, Arm Limited, All Rights Reserved
# Copyright (c) 2021 Mathias Brossard
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down Expand Up @@ -48,17 +49,18 @@
boards.append(p)

hics.sort()
boards.sort()
all_sorted = hics + boards

for p in hics:
print(p)
print()
boards.sort()
for p in boards:
print(p)

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

exit(0)

0 comments on commit b2c1f51

Please sign in to comment.