launcher: Allow using the base launcher as a test manager

No reason to force people to subclass it in simple cases.
This commit is contained in:
Thibault Saunier 2017-04-30 14:35:29 -03:00
parent bf71c93e84
commit 40a31b05b6

View file

@ -1027,7 +1027,7 @@ class TestsManager(Loggable):
""" A class responsible for managing tests. """
name = ""
name = "base"
def __init__(self):
@ -1051,7 +1051,7 @@ class TestsManager(Loggable):
self.blacklisted_tests = []
def init(self):
return False
return True
def list_tests(self):
return sorted(list(self.tests), key=lambda x: x.classname)