Skip to content

Commit 985d49b

Browse files
committed
test(trim-paths): use --config CLI to change options
1 parent 232f913 commit 985d49b

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

tests/testsuite/profile_trim_paths.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -523,22 +523,9 @@ fn object_works_helper(run: impl Fn(&std::path::Path) -> Vec<u8>) {
523523

524524
p.cargo("clean").run();
525525

526-
p.change_file(
527-
"Cargo.toml",
528-
r#"
529-
[package]
530-
name = "foo"
531-
version = "0.0.1"
532-
533-
[dependencies]
534-
bar = "0.0.1"
535-
536-
[profile.dev]
537-
trim-paths = "object"
538-
"#,
539-
);
540-
541526
p.cargo("build --verbose -Ztrim-paths")
527+
.arg("--config")
528+
.arg(r#"profile.dev.trim-paths="object""#)
542529
.masquerade_as_nightly_cargo(&["-Ztrim-paths"])
543530
.with_stderr(&format!(
544531
"\

0 commit comments

Comments
 (0)