Skip to content

Commit

Permalink
Merge pull request #396 from UnsignedByte/brench-globarr
Browse files Browse the repository at this point in the history
Allow for array of glob patterns in brench
  • Loading branch information
sampsyo authored Feb 11, 2025
2 parents d0967af + e3d7ba5 commit 90014fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions brench/brench.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def brench(config_path, files, jobs):
config = tomlkit.loads(f.read())

# Use configured file list, if none is specified via the CLI.
if not files and 'benchmarks' in config:
files = glob.glob(config['benchmarks'], recursive=True)
if not files and "benchmarks" in config:
files = config["benchmarks"]
if isinstance(files, str):
files = [files]
files = sum([glob.glob(f, recursive=True) for f in files], [])

timeout = config.get('timeout', 5)

Expand Down

0 comments on commit 90014fe

Please sign in to comment.