Skip to content

Commit 8a476b9

Browse files
committed
Don't have a top-level runners array
1 parent 2147aad commit 8a476b9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Unreleased
2+
3+
### bench_runner.toml change
4+
5+
The configuration no longer expects a top-level, single element `runners` array.
6+
7+
You should remove the following line from your `bench_runners.toml`:
8+
9+
```
10+
[[runners]]
11+
```

bench_runner/runners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def display_name(self) -> str:
4747

4848
@functools.cache
4949
def get_runners() -> list[Runner]:
50-
conf = config.get_bench_runner_config().get("runners", [{}])[0]
50+
conf = config.get_bench_runner_config().get("runners", {})
5151
runners = []
5252
for nickname, section in conf.items():
5353
runners.append(

bench_runner/templates/bench_runner.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ notification_issue = 182
4242
# --enable-optimizations and --with-lto=full.
4343
# BUILD_DEST: (windows only) where to make build.bat install. This is
4444
# required for the Windows build to succeed.
45-
[[runners]]
4645

4746
[runners.linux]
4847
os = "linux"

0 commit comments

Comments
 (0)