From bda678344f4b6a6cb0d93ceb93191fb908038eac Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sat, 26 May 2018 16:39:22 -0700 Subject: [PATCH] test-bots: Extract common filter out of conditional. --- tools/test-bots | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test-bots b/tools/test-bots index a6342c0..e517c9f 100755 --- a/tools/test-bots +++ b/tools/test-bots @@ -70,11 +70,11 @@ def main(): cov.start() if options.bots_to_test: - bots_to_test = filter(lambda bot: bot not in options.exclude, - options.bots_to_test) + specified_bots = options.bots_to_test else: - bots_to_test = filter(lambda bot: bot not in options.exclude, - available_bots) + specified_bots = available_bots + + bots_to_test = filter(lambda bot: bot not in options.exclude, specified_bots) # Should add a check here that __init__.py is absent if test_*.py is present?