Skip to content

Commit 71665a1

Browse files
LNT: Sort testsuites ascendingly
When running a large number of testsuites having them sorted alphabetically makes them easier to find. This also allows us to group testsuite by prefixing them with language. Reviewed By: thopre Differential Revision: https://reviews.llvm.org/D93115
1 parent cc9b7c4 commit 71665a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lnt/server/db/v4db.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def _load_schemas(self):
5555
continue
5656
tsdb = lnt.server.db.testsuitedb.TestSuiteDB(self, name, suite)
5757
self.testsuite[name] = tsdb
58+
# Order testuites alphabetically to get groupings
59+
self.testsuite = dict (sorted (self.testsuite.items()))
5860

5961
def __init__(self, path, config, baseline_revision=0):
6062
# If the path includes no database type, assume sqlite.

0 commit comments

Comments
 (0)