From fb8b60066ee9b1512dca37cc390525f28092711b Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 22 Oct 2024 08:40:35 -0400 Subject: [PATCH] Fix the finding of excluded benchmarks --- bench_runner/util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bench_runner/util.py b/bench_runner/util.py index 83d73a2f..271384e8 100644 --- a/bench_runner/util.py +++ b/bench_runner/util.py @@ -31,4 +31,8 @@ def apply_suffix(path: Path, suffix: str) -> Path: @functools.cache def get_excluded_benchmarks() -> set[str]: conf = config.get_bench_runner_config() - return set(conf.get("benchmarks", {}).get("excluded", [])) + benchmarks_section = conf.get("benchmarks", {}) + for key in ("excluded", "excluded_benchmarks"): + if key in benchmarks_section: + return set(benchmarks_section[key]) + return set()