Sort tests when generating cases
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
86caf85ed2
commit
a51fe2b27e
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class BaseTarget:
|
|||
@classmethod
|
||||
def generate_tests(cls):
|
||||
"""Generate test cases for the target subclasses."""
|
||||
for subclass in cls.__subclasses__():
|
||||
for subclass in sorted(cls.__subclasses__(), key=lambda c: c.__name__):
|
||||
yield from subclass.generate_tests()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue