feat(benchmarks): accept task name patterns
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e1493d9758
commit
fa593d3b27
1 file changed
+2
-1
@@ -11,6 +11,7 @@ Arms:
|
|||||||
an empty home where you ran `codex login` once.
|
an empty home where you ran `codex login` once.
|
||||||
"""
|
"""
|
||||||
import argparse
|
import argparse
|
||||||
|
import fnmatch
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
@@ -279,7 +280,7 @@ def main():
|
|||||||
merged[key] = result
|
merged[key] = result
|
||||||
print(summarize(list(merged.values())))
|
print(summarize(list(merged.values())))
|
||||||
return 0
|
return 0
|
||||||
tasks = [TASKS / name for name in args.tasks] if args.tasks else sorted(path for path in TASKS.iterdir() if path.is_dir())
|
tasks = [path for path in sorted(TASKS.iterdir()) if path.is_dir() and (not args.tasks or any(fnmatch.fnmatch(path.name, pattern) for pattern in args.tasks))]
|
||||||
for client in args.clients:
|
for client in args.clients:
|
||||||
if not shutil.which(client):
|
if not shutil.which(client):
|
||||||
parser.error(f'{client} CLI unavailable')
|
parser.error(f'{client} CLI unavailable')
|
||||||
|
|||||||
Reference in new issue
Block a user