Test .cargo/git/CACHEDIR.TAG is created

This commit is contained in:
Martin Pool 2022-04-16 07:55:30 -07:00
parent 7191fc05cb
commit 5afc6c7021

View file

@ -2247,6 +2247,11 @@ fn add_a_git_dep() {
p.cargo("build").run();
assert!(paths::home().is_dir());
assert!(paths::home().join(".cargo").is_dir());
assert!(paths::home().join(".cargo/git").is_dir());
assert!(paths::home().join(".cargo/git/CACHEDIR.TAG").is_file());
p.change_file(
"a/Cargo.toml",
&format!(
@ -2580,6 +2585,7 @@ fn use_the_cli() {
";
project.cargo("build -v").with_stderr(stderr).run();
assert!(paths::home().join(".cargo/git/CACHEDIR.TAG").is_file());
}
#[cargo_test]