mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
Don't convert Path to lossy str
This commit is contained in:
parent
6be0220967
commit
9febcf5e8d
@ -1,6 +1,7 @@
|
|||||||
#![cfg(feature = "integration")]
|
#![cfg(feature = "integration")]
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
use std::ffi::OsStr;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
#[cfg_attr(feature = "integration", test)]
|
#[cfg_attr(feature = "integration", test)]
|
||||||
@ -16,7 +17,12 @@ fn integration_test() {
|
|||||||
repo_dir.push(crate_name);
|
repo_dir.push(crate_name);
|
||||||
|
|
||||||
let st = Command::new("git")
|
let st = Command::new("git")
|
||||||
.args(&["clone", "--depth=1", &repo_url, repo_dir.to_str().unwrap()])
|
.args(&[
|
||||||
|
OsStr::new("clone"),
|
||||||
|
OsStr::new("--depth=1"),
|
||||||
|
OsStr::new(&repo_url),
|
||||||
|
OsStr::new(&repo_dir),
|
||||||
|
])
|
||||||
.status()
|
.status()
|
||||||
.expect("unable to run git");
|
.expect("unable to run git");
|
||||||
assert!(st.success());
|
assert!(st.success());
|
||||||
|
Loading…
Reference in New Issue
Block a user