mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Simplify cargo_command::cargo_subcommand_args test
This commit is contained in:
parent
6afca122e5
commit
49f73b9c4e
@ -264,13 +264,8 @@ fn cargo_subcommand_args() {
|
||||
|
||||
cargo_process("foo bar -v --help")
|
||||
.env("PATH", &path)
|
||||
.with_stdout(
|
||||
if cfg!(windows) { // weird edge-case w/ CWD & (windows vs unix)
|
||||
format!(r#"[{:?}, "foo", "bar", "-v", "--help"]"#, cargo_foo_bin)
|
||||
} else {
|
||||
r#"["[CWD]/cargo-foo/target/debug/cargo-foo", "foo", "bar", "-v", "--help"]"#.to_string()
|
||||
}
|
||||
).run();
|
||||
.with_stdout(r#"["[CWD]/cargo-foo/target/debug/cargo-foo", "foo", "bar", "-v", "--help"]"#)
|
||||
.run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
x
Reference in New Issue
Block a user