Skip to content

Commit

Permalink
refactor: rename to script_path
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Oct 18, 2023
1 parent 1f1eba9 commit bc5ff73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/integrated-benchmark/src/work_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down Expand Up @@ -99,7 +99,7 @@ impl WorkEnv {
}

eprintln!("Populating proxy registry cache...");
self.sub_install_script(WorkEnv::INIT_PROXY_CACHE)
self.script_path(WorkEnv::INIT_PROXY_CACHE)
.pipe(Command::new)
.pipe_mut(executor("install.bash"))
}
Expand Down Expand Up @@ -166,7 +166,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
Expand Down

0 comments on commit bc5ff73

Please sign in to comment.