We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a50e738 commit e39d601Copy full SHA for e39d601
rust/tests/common.rs
@@ -63,7 +63,8 @@ pub fn get_driver_path(cmd: &mut Command) -> String {
63
pub fn exec_driver(cmd: &mut Command) -> String {
64
let cmd_mut = cmd.borrow_mut();
65
let driver_path = get_driver_path(cmd_mut);
66
- let driver_version_command = shell::Command::new_single(format!("{} --version", &driver_path));
+ let static_driver_path: &'static str = Box::leak(driver_path.into_boxed_str());
67
+ let driver_version_command = shell::Command::new_multiple(vec![static_driver_path, "--version"]);
68
let output = run_shell_command_by_os(OS, driver_version_command).unwrap();
69
println!("**** EXEC DRIVER: {}", output);
70
output
0 commit comments