Skip to content

Commit

Permalink
[lit] Use Python's support for None in array slice indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Lettner committed Mar 30, 2020
1 parent bab5bcf commit d16ba9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/utils/lit/lit/main.py
Expand Up @@ -85,8 +85,7 @@ def main(builtin_params={}):
'Consider decreasing the number of shards.\n')
sys.exit(0)

if opts.max_tests:
filtered_tests = filtered_tests[:opts.max_tests]
filtered_tests = filtered_tests[:opts.max_tests]

opts.workers = min(len(filtered_tests), opts.workers)

Expand Down

0 comments on commit d16ba9b

Please sign in to comment.