Sort tests when generating cases

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis 2022-07-20 13:35:22 +01:00
parent 86caf85ed2
commit a51fe2b27e

View file

@ -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()