cli_run: support examples with more than one path argument

This commit is contained in:
Brian Carroll 2022-08-29 22:06:12 +01:00
parent 5d6037d888
commit 1a8419e9e6
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 84 additions and 95 deletions

View file

@ -164,7 +164,7 @@ where
pub fn run_cmd<'a, I: IntoIterator<Item = &'a str>>(
cmd_name: &str,
stdin_vals: I,
args: &[&str],
args: &[String],
) -> Out {
let mut cmd = Command::new(cmd_name);
@ -202,7 +202,7 @@ pub fn run_cmd<'a, I: IntoIterator<Item = &'a str>>(
pub fn run_with_valgrind<'a, I: IntoIterator<Item = &'a str>>(
stdin_vals: I,
args: &[&str],
args: &[String],
) -> (Out, String) {
//TODO: figure out if there is a better way to get the valgrind executable.
let mut cmd = Command::new("valgrind");