Skip to content

Commit 391a362

Browse files
committed
Revert "[rust] Use multiple command in exec driver test"
This reverts commit 802da7a.
1 parent 802da7a commit 391a362

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rust/tests/common.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ pub fn get_driver_path(cmd: &mut Command) -> String {
6363
pub fn exec_driver(cmd: &mut Command) -> String {
6464
let cmd_mut = cmd.borrow_mut();
6565
let driver_path = get_driver_path(cmd_mut);
66-
let static_driver_path: &'static str = Box::leak(driver_path.into_boxed_str());
67-
let driver_version_command =
68-
shell::Command::new_multiple(vec![static_driver_path, "--version"]);
66+
let driver_version_command = shell::Command::new_single(format!("{} --version", &driver_path));
6967
let output = run_shell_command_by_os(OS, driver_version_command).unwrap();
7068
println!("**** EXEC DRIVER: {}", output);
7169
output

0 commit comments

Comments
 (0)