From a04e0206ebdb5d34ba45c44b521540ac8587160a Mon Sep 17 00:00:00 2001 From: Pavel Marek Date: Wed, 19 Feb 2025 19:07:53 +0100 Subject: [PATCH] Run all benchmarks when empty name specified --- build_tools/build/src/engine.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build_tools/build/src/engine.rs b/build_tools/build/src/engine.rs index 6203ae0861d5..8f6b03d539ce 100644 --- a/build_tools/build/src/engine.rs +++ b/build_tools/build/src/engine.rs @@ -159,13 +159,15 @@ impl Benchmarks { match &self.bench_type { BenchmarkType::All => Some("bench".to_string()), BenchmarkType::Runtime => match &self.bench_name { - None => Some("runtime-benchmarks/bench".to_string()), - Some(name) => Some(format!("runtime-benchmarks/benchOnly {}", name)), + Some(name) if !name.is_empty() => + Some(format!("runtime-benchmarks/benchOnly {}", name)), + _ => Some("runtime-benchmarks/bench".to_string()), }, BenchmarkType::Enso => None, BenchmarkType::EnsoJMH => match &self.bench_name { - None => Some("std-benchmarks/bench".to_string()), - Some(name) => Some(format!("std-benchmarks/benchOnly {}", name)), + Some(name) if !name.is_empty() => + Some(format!("std-benchmarks/benchOnly {}", name)), + _ => Some("std-benchmarks/bench".to_string()), }, } }