about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2020-07-31 04:20:27 +0000
committerLzu Tao <taolzu@gmail.com>2020-07-31 04:20:27 +0000
commita4757225d72b9c7f46bc90630126eb000974ffaf (patch)
tree5fb75b693618e9a3de1240025ea31492f8e1a14d /src
parentc058a8b8dc5dea0ed9b33e14da9e317e2749fcd7 (diff)
downloadrust-a4757225d72b9c7f46bc90630126eb000974ffaf.tar.gz
rust-a4757225d72b9c7f46bc90630126eb000974ffaf.zip
Run all tests if have no specified tests
Diffstat (limited to 'src')
-rw-r--r--src/etc/test-float-parse/runtests.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/etc/test-float-parse/runtests.py b/src/etc/test-float-parse/runtests.py
index 4d2902e986f..218552a4597 100644
--- a/src/etc/test-float-parse/runtests.py
+++ b/src/etc/test-float-parse/runtests.py
@@ -193,10 +193,12 @@ def interact(proc, queue):
 
 def main():
     global MAILBOX
-    tests = [os.path.splitext(f)[0] for f in glob('*.rs')
-                                    if not f.startswith('_')]
+    all_tests = [os.path.splitext(f)[0] for f in glob('*.rs') if not f.startswith('_')]
     args = sys.argv[1:]
-    tests = [test for test in tests if test in args]
+    if args:
+        tests = [test for test in all_tests if test in args]
+    else
+        tests = all_tests
     if not tests:
         print("Error: No tests to run")
         sys.exit(1)