Skip to content

Commit

Permalink
LNT: Sort testsuites ascendingly
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TamarChristinaArm committed Dec 12, 2020
1 parent cc9b7c4 commit 71665a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lnt/server/db/v4db.py
Expand Up @@ -55,6 +55,8 @@ def _load_schemas(self):
continue
tsdb = lnt.server.db.testsuitedb.TestSuiteDB(self, name, suite)
self.testsuite[name] = tsdb
# Order testuites alphabetically to get groupings
self.testsuite = dict (sorted (self.testsuite.items()))

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

0 comments on commit 71665a1

Please sign in to comment.