Skip to content

Commit bda6783

Browse files
committed
test-bots: Extract common filter out of conditional.
1 parent 210caa4 commit bda6783

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/test-bots

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def main():
7070
cov.start()
7171

7272
if options.bots_to_test:
73-
bots_to_test = filter(lambda bot: bot not in options.exclude,
74-
options.bots_to_test)
73+
specified_bots = options.bots_to_test
7574
else:
76-
bots_to_test = filter(lambda bot: bot not in options.exclude,
77-
available_bots)
75+
specified_bots = available_bots
76+
77+
bots_to_test = filter(lambda bot: bot not in options.exclude, specified_bots)
7878

7979
# Should add a check here that __init__.py is absent if test_*.py is present?
8080

0 commit comments

Comments
 (0)