Skip to content

Commit cf65287

Browse files
committed
Don't shell out to miri script, that won't work in rustc's CI
1 parent aef389c commit cf65287

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/compiletest.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
6666
dependencies_crate_manifest_path: use_std
6767
.then(|| Path::new("test_dependencies").join("Cargo.toml")),
6868
dependency_builder: Some(DependencyBuilder {
69-
program: PathBuf::from("bash"),
70-
args: vec!["miri".to_string(), "cargo".to_string()],
69+
program: std::env::var_os("CARGO").unwrap().into(),
70+
args: vec![
71+
"run".into(),
72+
"--manifest-path".into(),
73+
"cargo-miri/Cargo.toml".into(),
74+
"--".into(),
75+
"miri".into(),
76+
],
7177
envs: vec![],
7278
}),
7379
};

0 commit comments

Comments
 (0)