Fix check for alphabetical sorting in layout.yaml
Previously z/tempest was in the middle of the file and needed special treatment for sorting. Nowadays it's at the end and thus no special treatment is needed, remove it. With this change additions to the end of the file will now be flagged. Change-Id: I337017b4a17e8aa086d658649613ddc61212adc8
This commit is contained in:
parent
0ebe0a2f04
commit
71aa9e00aa
@ -67,8 +67,7 @@ def check_projects_sorted():
|
||||
firstEntry = False
|
||||
if line.startswith(' - name: ') and not firstEntry:
|
||||
current = line[10:].strip()
|
||||
if (normalize(last) > normalize(current) and
|
||||
last != 'z/tempest'):
|
||||
if (normalize(last) > normalize(current)):
|
||||
print(" Wrong alphabetical order: %(last)s, %(current)s" %
|
||||
{"last": last, "current": current})
|
||||
errors = True
|
||||
|
Loading…
Reference in New Issue
Block a user