Skip to content

Commit

Permalink
Merge pull request #249 from htejun/misc
Browse files Browse the repository at this point in the history
bench: ignore bench updates in study mode
  • Loading branch information
htejun authored Aug 23, 2021
2 parents 5b70362 + 6957646 commit ebd59bc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions resctl-bench/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,12 @@ impl<'a> Base<'a> {

fn apply_bench_knobs(&mut self, knobs: BenchKnobs, commit: bool) -> Result<()> {
self.bench_knobs = knobs;
self.save_bench_knobs(&self.bench_knobs_path)?;
if commit {
self.save_bench_knobs(&self.demo_bench_knobs_path)?;
// bench_knobs_path is not set in study mode. Ignore.
if self.bench_knobs_path.len() > 0 {
self.save_bench_knobs(&self.bench_knobs_path)?;
if commit {
self.save_bench_knobs(&self.demo_bench_knobs_path)?;
}
}
Ok(())
}
Expand Down

0 comments on commit ebd59bc

Please sign in to comment.