diff --git a/tasks/integrated-benchmark/src/work_env.rs b/tasks/integrated-benchmark/src/work_env.rs index ca3c8e5a6..b3308beea 100644 --- a/tasks/integrated-benchmark/src/work_env.rs +++ b/tasks/integrated-benchmark/src/work_env.rs @@ -54,7 +54,7 @@ impl WorkEnv { self.root().join(id.to_string()) } - fn sub_install_script(&self, id: BenchId) -> PathBuf { + fn script_path(&self, id: BenchId) -> PathBuf { self.bench_dir(id).join("install.bash") } @@ -99,9 +99,7 @@ impl WorkEnv { } eprintln!("Populating proxy registry cache..."); - self.sub_install_script(WorkEnv::INIT_PROXY_CACHE) - .pipe(Command::new) - .pipe_mut(executor("install.bash")) + self.script_path(WorkEnv::INIT_PROXY_CACHE).pipe(Command::new).pipe_mut(executor("install.bash")) } fn build(&self) { @@ -166,7 +164,7 @@ impl WorkEnv { self.hyperfine_options.append_to(&mut command); for id in self.revision_ids().chain(self.with_pnpm.then_some(WorkEnv::PNPM)) { - command.arg("--command-name").arg(id.to_string()).arg(self.sub_install_script(id)); + command.arg("--command-name").arg(id.to_string()).arg(self.script_path(id)); } command