Skip to content

Commit

Permalink
Rollup merge of #74905 - lzutao:listed, r=jyn514
Browse files Browse the repository at this point in the history
Avoid bool-like naming

Lost in #74127 (comment)
  • Loading branch information
Manishearth authored Jul 30, 2020
2 parents 8892785 + 0374006 commit e823af6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/etc/test-float-parse/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,8 @@ def main():
global MAILBOX
tests = [os.path.splitext(f)[0] for f in glob('*.rs')
if not f.startswith('_')]
listed = sys.argv[1:]
if listed:
tests = [test for test in tests if test in listed]
args = sys.argv[1:]
tests = [test for test in tests if test in args]
if not tests:
print("Error: No tests to run")
sys.exit(1)
Expand Down

0 comments on commit e823af6

Please sign in to comment.