Delete redundant broken tests

This commit is contained in:
lf- 2021-03-18 00:24:12 -07:00 committed by Eric Huss
parent c685eb322b
commit 47347de87e
2 changed files with 0 additions and 50 deletions

View File

@ -87,30 +87,6 @@ Caused by:
.run();
}
#[cargo_test]
fn bad4() {
let p = project()
.file(
".cargo/config",
r#"
[cargo-new]
name = false
"#,
)
.build();
p.cargo("new -v foo")
.with_status(101)
.with_stderr(
"\
[ERROR] Failed to create package `foo` at `[..]`
Caused by:
error in [..]config: `cargo-new.name` expected a string, but found a boolean
",
)
.run();
}
#[cargo_test]
fn bad6() {
let p = project()

View File

@ -245,32 +245,6 @@ fn displays_subcommand_on_error() {
.run();
}
#[cargo_test]
fn override_cargo_home() {
let root = paths::root();
let my_home = root.join("my_home");
fs::create_dir(&my_home).unwrap();
fs::write(
&my_home.join("config"),
r#"
[cargo-new]
name = "foo"
email = "bar"
git = false
"#,
)
.unwrap();
cargo_process("new foo")
.env("USER", "foo")
.env("CARGO_HOME", &my_home)
.run();
let toml = paths::root().join("foo/Cargo.toml");
let contents = fs::read_to_string(&toml).unwrap();
assert!(contents.contains(r#"authors = ["foo <bar>"]"#));
}
#[cargo_test]
fn cargo_subcommand_env() {
let src = format!(