mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test(git): Reduce duplication in shallow test
This commit is contained in:
parent
34d0bcb3e9
commit
4e3e353978
@ -97,11 +97,12 @@ fn perform_two_revs_same_deps(mode: RepoMode) {
|
||||
)
|
||||
.build();
|
||||
|
||||
let args = match mode {
|
||||
RepoMode::Complete => "check -v",
|
||||
RepoMode::Shallow => "check -v -Zgitoxide=fetch -Zgit=shallow-deps",
|
||||
let mode_args = match mode {
|
||||
RepoMode::Complete => "",
|
||||
RepoMode::Shallow => "-Zgitoxide=fetch -Zgit=shallow-deps",
|
||||
};
|
||||
foo.cargo(args)
|
||||
foo.cargo("check -v")
|
||||
.arg_line(mode_args)
|
||||
.masquerade_as_nightly_cargo(&["gitoxide=fetch", "git=shallow-deps"])
|
||||
.run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user