mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
test(trim-paths): use --config
CLI to change options
This commit is contained in:
parent
232f91368f
commit
985d49b916
@ -523,22 +523,9 @@ fn object_works_helper(run: impl Fn(&std::path::Path) -> Vec<u8>) {
|
|||||||
|
|
||||||
p.cargo("clean").run();
|
p.cargo("clean").run();
|
||||||
|
|
||||||
p.change_file(
|
|
||||||
"Cargo.toml",
|
|
||||||
r#"
|
|
||||||
[package]
|
|
||||||
name = "foo"
|
|
||||||
version = "0.0.1"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
bar = "0.0.1"
|
|
||||||
|
|
||||||
[profile.dev]
|
|
||||||
trim-paths = "object"
|
|
||||||
"#,
|
|
||||||
);
|
|
||||||
|
|
||||||
p.cargo("build --verbose -Ztrim-paths")
|
p.cargo("build --verbose -Ztrim-paths")
|
||||||
|
.arg("--config")
|
||||||
|
.arg(r#"profile.dev.trim-paths="object""#)
|
||||||
.masquerade_as_nightly_cargo(&["-Ztrim-paths"])
|
.masquerade_as_nightly_cargo(&["-Ztrim-paths"])
|
||||||
.with_stderr(&format!(
|
.with_stderr(&format!(
|
||||||
"\
|
"\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user