Skip to content

Commit a475722

Browse files
committed
Run all tests if have no specified tests
1 parent c058a8b commit a475722

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/etc/test-float-parse/runtests.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,12 @@ def interact(proc, queue):
193193

194194
def main():
195195
global MAILBOX
196-
tests = [os.path.splitext(f)[0] for f in glob('*.rs')
197-
if not f.startswith('_')]
196+
all_tests = [os.path.splitext(f)[0] for f in glob('*.rs') if not f.startswith('_')]
198197
args = sys.argv[1:]
199-
tests = [test for test in tests if test in args]
198+
if args:
199+
tests = [test for test in all_tests if test in args]
200+
else
201+
tests = all_tests
200202
if not tests:
201203
print("Error: No tests to run")
202204
sys.exit(1)

0 commit comments

Comments
 (0)