File tree Expand file tree Collapse file tree 3 files changed +4
-16
lines changed
crates/cargo-test-macro/src
src/doc/contrib/src/tests Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ pub fn cargo_test(attr: TokenStream, item: TokenStream) -> TokenStream {
43
43
requires_reason = true ;
44
44
ignore |= is_not_nightly ( ) ;
45
45
}
46
- "disable_git_cli" => {
47
- ignore |= disable_git_cli ( ) ;
48
- }
49
46
s if s. starts_with ( "requires_" ) => {
50
47
let command = & s[ 9 ..] ;
51
48
ignore |= !has_command ( command) ;
@@ -155,13 +152,6 @@ fn version() -> &'static (u32, bool) {
155
152
unsafe { & VERSION }
156
153
}
157
154
158
- fn disable_git_cli ( ) -> bool {
159
- // mingw git on Windows does not support Windows-style file URIs.
160
- // Appveyor in the rust repo has that git up front in the PATH instead
161
- // of Git-for-Windows, which causes this to fail.
162
- matches ! ( option_env!( "CARGO_TEST_DISABLE_GIT_CLI" ) , Some ( "1" ) )
163
- }
164
-
165
155
fn has_command ( command : & str ) -> bool {
166
156
let output = match Command :: new ( command) . arg ( "--version" ) . output ( ) {
167
157
Ok ( output) => output,
Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ The options it supports are:
92
92
* ` >=1.64 ` — This indicates that the test will only run with the given version of ` rustc ` or newer.
93
93
This can be used when a new ` rustc ` feature has been stabilized that the test depends on.
94
94
If this is specified, a ` reason ` is required to explain why it is being checked.
95
- * ` disable_git_cli ` — This is needed for ` git-fetch-with-cli ` tests.
96
- This disables the test in rust-lang/rust's CI due to a compatibility issue.
97
95
98
96
#### Testing Nightly Features
99
97
Original file line number Diff line number Diff line change @@ -2642,7 +2642,7 @@ fn failed_submodule_checkout() {
2642
2642
t. join ( ) . unwrap ( ) ;
2643
2643
}
2644
2644
2645
- #[ cargo_test( disable_git_cli ) ]
2645
+ #[ cargo_test]
2646
2646
fn use_the_cli ( ) {
2647
2647
let project = project ( ) ;
2648
2648
let git_project = git:: new ( "dep1" , |project| {
@@ -2743,7 +2743,7 @@ fn templatedir_doesnt_cause_problems() {
2743
2743
p. cargo ( "build" ) . run ( ) ;
2744
2744
}
2745
2745
2746
- #[ cargo_test( disable_git_cli ) ]
2746
+ #[ cargo_test]
2747
2747
fn git_with_cli_force ( ) {
2748
2748
// Supports a force-pushed repo.
2749
2749
let git_project = git:: new ( "dep1" , |project| {
@@ -2800,7 +2800,7 @@ fn git_with_cli_force() {
2800
2800
p. rename_run ( "foo" , "foo2" ) . with_stdout ( "two" ) . run ( ) ;
2801
2801
}
2802
2802
2803
- #[ cargo_test( disable_git_cli ) ]
2803
+ #[ cargo_test]
2804
2804
fn git_fetch_cli_env_clean ( ) {
2805
2805
// This tests that git-fetch-with-cli works when GIT_DIR environment
2806
2806
// variable is set (for whatever reason).
@@ -3500,7 +3500,7 @@ fn corrupted_checkout() {
3500
3500
_corrupted_checkout ( false ) ;
3501
3501
}
3502
3502
3503
- #[ cargo_test( disable_git_cli ) ]
3503
+ #[ cargo_test]
3504
3504
fn corrupted_checkout_with_cli ( ) {
3505
3505
// Test what happens if the checkout is corrupted somehow with git cli.
3506
3506
_corrupted_checkout ( true ) ;
You can’t perform that action at this time.
0 commit comments