Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Oct 18, 2023
1 parent 1f1eba9 commit 345299b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 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,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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 345299b

Please sign in to comment.