about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-30 13:04:36 -0700
committerGitHub <noreply@github.com>2020-07-30 13:04:36 -0700
commite823af6015cbd9b9f6d97a84e86adada3de82a4d (patch)
tree0094bc6fbde6466cb23e511ed8ab50452f2ced1f
parent8892785c8e0aed3cc8a30d14deda24bfc04a2908 (diff)
parent0374006d79114824d8eec020a9d771ca8cf712ff (diff)
downloadrust-e823af6015cbd9b9f6d97a84e86adada3de82a4d.tar.gz
rust-e823af6015cbd9b9f6d97a84e86adada3de82a4d.zip
Rollup merge of #74905 - lzutao:listed, r=jyn514
Avoid bool-like naming

Lost in https://github.com/rust-lang/rust/pull/74127#discussion_r453143504
-rw-r--r--src/etc/test-float-parse/runtests.py5
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)