summaryrefslogtreecommitdiff
path: root/src/bin/obnam-benchmark.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/obnam-benchmark.rs')
-rw-r--r--src/bin/obnam-benchmark.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/obnam-benchmark.rs b/src/bin/obnam-benchmark.rs
index 21012b3..9a326ec 100644
--- a/src/bin/obnam-benchmark.rs
+++ b/src/bin/obnam-benchmark.rs
@@ -53,8 +53,9 @@ impl Run {
fn run(&self) -> anyhow::Result<()> {
let spec = Specification::from_file(&self.spec)?;
let mut result = Result::default();
+ let mut current_benchmark = None;
for step in spec.steps() {
- if let Some(m) = step.execute()? {
+ if let Some(m) = step.execute(&mut current_benchmark)? {
result.push(m);
}
}