Skip to content

Commit

Permalink
Avoid bool-like naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jul 29, 2020
1 parent 10c3757 commit 0374006
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/etc/test-float-parse/runtests.py
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 0374006

Please sign in to comment.