diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2020-07-07 11:12:44 -0400 |
|---|---|---|
| committer | Tamir Duberstein <tamird@google.com> | 2020-07-10 07:39:28 -0400 |
| commit | 62cf767a4a39b47677d18110359d9e7152dc9d1c (patch) | |
| tree | 8bc162cb6f8e309f513cfccff3ab3969b10333c6 /src/etc/test-float-parse/runtests.py | |
| parent | e59b08e62ea691916d2f063cac5aab4634128022 (diff) | |
| download | rust-62cf767a4a39b47677d18110359d9e7152dc9d1c.tar.gz rust-62cf767a4a39b47677d18110359d9e7152dc9d1c.zip | |
Avoid "whitelist"
Other terms are more inclusive and precise.
Diffstat (limited to 'src/etc/test-float-parse/runtests.py')
| -rw-r--r-- | src/etc/test-float-parse/runtests.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/etc/test-float-parse/runtests.py b/src/etc/test-float-parse/runtests.py index fe6fd45f9a5..7106078f897 100644 --- a/src/etc/test-float-parse/runtests.py +++ b/src/etc/test-float-parse/runtests.py @@ -195,9 +195,9 @@ def main(): global MAILBOX tests = [os.path.splitext(f)[0] for f in glob('*.rs') if not f.startswith('_')] - whitelist = sys.argv[1:] - if whitelist: - tests = [test for test in tests if test in whitelist] + listed = sys.argv[1:] + if listed: + tests = [test for test in tests if test in listed] if not tests: print("Error: No tests to run") sys.exit(1) @@ -210,8 +210,6 @@ def main(): mailman.daemon = True mailman.start() for test in tests: - if whitelist and test not in whitelist: - continue run(test) MAILBOX.put(None) mailman.join() |
