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 802da7a commit 391a362Copy full SHA for 391a362
rust/tests/common.rs
@@ -63,9 +63,7 @@ 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 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"]);
+ let driver_version_command = shell::Command::new_single(format!("{} --version", &driver_path));
69
let output = run_shell_command_by_os(OS, driver_version_command).unwrap();
70
println!("**** EXEC DRIVER: {}", output);
71
output
0 commit comments