diff options
Diffstat (limited to 'src/specification.rs')
-rw-r--r-- | src/specification.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/specification.rs b/src/specification.rs index 9e315f7..4eeb430 100644 --- a/src/specification.rs +++ b/src/specification.rs @@ -113,10 +113,11 @@ impl Specification { /// Serialize the specification into a sequence of steps to execute it. pub fn steps(&self) -> Vec<Step> { let mut steps = vec![]; - let num_benchmarks = self.benchmarks.len(); - let after_base = num_benchmarks; - let restore_base = after_base + num_benchmarks; for b in self.benchmarks.iter() { + let n = b.backups.len(); + let after_base = n; + let restore_base = 2 * n; + steps.push(Step::Start(b.benchmark.to_string())); for (i, backup) in b.backups.iter().enumerate() { for change in backup.changes.iter() { @@ -131,8 +132,8 @@ impl Specification { for (i, _) in b.backups.iter().enumerate() { steps.push(Step::Restore(i)); let restored = restore_base + i; - // steps.push(Step::ManifestRestored(restored)); - // steps.push(Step::CompareManifests(i, restored)); + steps.push(Step::ManifestRestored(restored)); + steps.push(Step::CompareManifests(i, restored)); } steps.push(Step::Stop(b.benchmark.to_string())); } |