Rollup merge of #74905 - lzutao:listed, r=jyn514
Avoid bool-like naming Lost in https://github.com/rust-lang/rust/pull/74127#discussion_r453143504
This commit is contained in:
commit
e823af6015
|
@ -195,9 +195,8 @@ def main():
|
||||||
global MAILBOX
|
global MAILBOX
|
||||||
tests = [os.path.splitext(f)[0] for f in glob('*.rs')
|
tests = [os.path.splitext(f)[0] for f in glob('*.rs')
|
||||||
if not f.startswith('_')]
|
if not f.startswith('_')]
|
||||||
listed = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
if listed:
|
tests = [test for test in tests if test in args]
|
||||||
tests = [test for test in tests if test in listed]
|
|
||||||
if not tests:
|
if not tests:
|
||||||
print("Error: No tests to run")
|
print("Error: No tests to run")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue