Skip to content

Commit ad8230f

Browse files
authored
Rollup merge of #74968 - lzutao:no-args, r=Mark-Simulacrum
Run all tests if have no specified tests The behaviour was changed in #74905 (comment) cc @alex if you could check it again, thank you.
2 parents ab4570e + a475722 commit ad8230f

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)