test-bots: Use unused available_bots to discover tests.
This commit is contained in:
parent
76b2befb9b
commit
a5307b3771
|
@ -81,7 +81,8 @@ def main():
|
||||||
# Codecov seems to work only when using loader.discover. It failed to
|
# Codecov seems to work only when using loader.discover. It failed to
|
||||||
# capture line executions for functions like loader.loadTestFromModule
|
# capture line executions for functions like loader.loadTestFromModule
|
||||||
# or loader.loadTestFromNames.
|
# or loader.loadTestFromNames.
|
||||||
test_suites = loader.discover(top_level)
|
test_suites = [loader.discover(top_level + name, top_level_dir=top_level)
|
||||||
|
for name in available_bots]
|
||||||
|
|
||||||
def filter_tests(tests):
|
def filter_tests(tests):
|
||||||
# type: (Union[TestSuite, TestCase]) -> TestSuite
|
# type: (Union[TestSuite, TestCase]) -> TestSuite
|
||||||
|
|
Loading…
Reference in a new issue