diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-07-29 10:48:00 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-07-29 10:48:00 +0000 |
| commit | 0374006d79114824d8eec020a9d771ca8cf712ff (patch) | |
| tree | 8a1e562d7df3f74f6fec3980e01809ddea4ec0cc /src/etc/test-float-parse | |
| parent | 10c375700ce170fc57cb617754dc6d0631d3d573 (diff) | |
| download | rust-0374006d79114824d8eec020a9d771ca8cf712ff.tar.gz rust-0374006d79114824d8eec020a9d771ca8cf712ff.zip | |
Avoid bool-like naming
Diffstat (limited to 'src/etc/test-float-parse')
| -rw-r--r-- | src/etc/test-float-parse/runtests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/etc/test-float-parse/runtests.py b/src/etc/test-float-parse/runtests.py index 7106078f897..4d2902e986f 100644 --- a/src/etc/test-float-parse/runtests.py +++ b/src/etc/test-float-parse/runtests.py @@ -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) |
