File tree Expand file tree Collapse file tree
crates/cargo-test-macro/src
src/doc/contrib/src/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ pub fn cargo_test(attr: TokenStream, item: TokenStream) -> TokenStream {
4343 requires_reason = true ;
4444 ignore |= is_not_nightly ( ) ;
4545 }
46- "disable_git_cli" => {
47- ignore |= disable_git_cli ( ) ;
48- }
4946 s if s. starts_with ( "requires_" ) => {
5047 let command = & s[ 9 ..] ;
5148 ignore |= !has_command ( command) ;
@@ -155,13 +152,6 @@ fn version() -> &'static (u32, bool) {
155152 unsafe { & VERSION }
156153}
157154
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-
165155fn has_command ( command : & str ) -> bool {
166156 let output = match Command :: new ( command) . arg ( "--version" ) . output ( ) {
167157 Ok ( output) => output,
Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ The options it supports are:
9292* ` >=1.64 ` — This indicates that the test will only run with the given version of ` rustc ` or newer.
9393 This can be used when a new ` rustc ` feature has been stabilized that the test depends on.
9494 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.
9795
9896#### Testing Nightly Features
9997
Original file line number Diff line number Diff line change @@ -2642,7 +2642,7 @@ fn failed_submodule_checkout() {
26422642 t. join ( ) . unwrap ( ) ;
26432643}
26442644
2645- #[ cargo_test( disable_git_cli ) ]
2645+ #[ cargo_test]
26462646fn use_the_cli ( ) {
26472647 let project = project ( ) ;
26482648 let git_project = git:: new ( "dep1" , |project| {
@@ -2743,7 +2743,7 @@ fn templatedir_doesnt_cause_problems() {
27432743 p. cargo ( "build" ) . run ( ) ;
27442744}
27452745
2746- #[ cargo_test( disable_git_cli ) ]
2746+ #[ cargo_test]
27472747fn git_with_cli_force ( ) {
27482748 // Supports a force-pushed repo.
27492749 let git_project = git:: new ( "dep1" , |project| {
@@ -2800,7 +2800,7 @@ fn git_with_cli_force() {
28002800 p. rename_run ( "foo" , "foo2" ) . with_stdout ( "two" ) . run ( ) ;
28012801}
28022802
2803- #[ cargo_test( disable_git_cli ) ]
2803+ #[ cargo_test]
28042804fn git_fetch_cli_env_clean ( ) {
28052805 // This tests that git-fetch-with-cli works when GIT_DIR environment
28062806 // variable is set (for whatever reason).
@@ -3500,7 +3500,7 @@ fn corrupted_checkout() {
35003500 _corrupted_checkout ( false ) ;
35013501}
35023502
3503- #[ cargo_test( disable_git_cli ) ]
3503+ #[ cargo_test]
35043504fn corrupted_checkout_with_cli ( ) {
35053505 // Test what happens if the checkout is corrupted somehow with git cli.
35063506 _corrupted_checkout ( true ) ;
You can’t perform that action at this time.
0 commit comments