mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Dedup with cargo::z_help::case
(https://github.com/rust-lang/cargo/pull/14060#discussion_r1638481972)
# Conflicts: # tests/testsuite/help.rs
This commit is contained in:
parent
3a95c7846d
commit
3fd3879bc8
@ -155,18 +155,3 @@ fn help_alias() {
|
|||||||
let out = help_with_stdout_and_path("complex-alias", Path::new(""));
|
let out = help_with_stdout_and_path("complex-alias", Path::new(""));
|
||||||
assert_eq!(out, "`complex-alias` is aliased to `build --release`\n");
|
assert_eq!(out, "`complex-alias` is aliased to `build --release`\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test]
|
|
||||||
fn alias_z_flag_help() {
|
|
||||||
for cmd in ["build", "run", "check", "test", "b", "r", "c", "t"] {
|
|
||||||
cargo_process(&format!("{cmd} -Z help"))
|
|
||||||
.with_stdout_data(
|
|
||||||
"\
|
|
||||||
...
|
|
||||||
-Z allow-features[..] Allow *only* the listed unstable features
|
|
||||||
...
|
|
||||||
",
|
|
||||||
)
|
|
||||||
.run();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user