Skip to content

Commit

Permalink
fix test helper workdir::command() rename "sub_command" parameter t…
Browse files Browse the repository at this point in the history
…o "command_str"

as its actually not the subcommand, but the command

[skip ci]
  • Loading branch information
jqnatividad committed Nov 12, 2023
1 parent 4fe30a5 commit 87cded8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/workdir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ impl Workdir {
Csv::from_vecs(records)
}

pub fn command(&self, sub_command: &str) -> process::Command {
pub fn command(&self, command_str: &str) -> process::Command {
let mut cmd = process::Command::new(self.qsv_bin());
if sub_command.is_empty() {
if command_str.is_empty() {
cmd.current_dir(&self.dir);
} else {
cmd.current_dir(&self.dir).arg(sub_command);
cmd.current_dir(&self.dir).arg(command_str);
}
cmd
}
Expand Down

0 comments on commit 87cded8

Please sign in to comment.