From a5307b37717eecf8ef59baf7f331aef01d22ebb6 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sat, 26 May 2018 16:30:06 -0700 Subject: [PATCH] test-bots: Use unused available_bots to discover tests. --- tools/test-bots | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-bots b/tools/test-bots index 57ea0de..c9a5618 100755 --- a/tools/test-bots +++ b/tools/test-bots @@ -81,7 +81,8 @@ def main(): # Codecov seems to work only when using loader.discover. It failed to # capture line executions for functions like loader.loadTestFromModule # 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): # type: (Union[TestSuite, TestCase]) -> TestSuite