[SCM-911] Skip tests if Git executable is not in PATH
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandNoBranchTest.java b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandNoBranchTest.java
index 65ce12a..ff985f7 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandNoBranchTest.java
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandNoBranchTest.java
@@ -53,7 +53,7 @@
     {
         if ( !ScmTestCase.isSystemCmd( "git" ) )
         {
-            System.out.println( "skip test which git native executable in path" );
+            System.out.println( "Skip test which requires Git native executable to be in PATH" );
             return;
         }
         File repo_orig = new File( "src/test/resources/repository_no_branch" );
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandTest.java b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandTest.java
index cea5b91..e2e2330 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandTest.java
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommandTest.java
@@ -110,6 +110,12 @@
         File wineFile = new File(barDir.getAbsolutePath(), "wine.xml");
         FileUtils.fileWrite( wineFile.getAbsolutePath(), "Lacoste castle" );
 
+        if ( !ScmTestCase.isSystemCmd( "git" ) )
+        {
+            System.out.println( "Skip test which requires Git native executable to be in PATH" );
+            return;
+        }
+
         // Adding and commiting file
         AddScmResult addResult = getScmManager().add( scmRepository, new ScmFileSet( checkedOutRepo, new File( "foo/bar/wine.xml" ) ) );
         assertResultIsSuccess( addResult );
@@ -129,7 +135,7 @@
         assertResultIsSuccess(addResult);
         checkInScmResult = getScmManager().checkIn(scmRepository, new ScmFileSet(checkedOutRepo), "moved wine.xml from foo/bar/ to foo/newbar/");
         assertResultIsSuccess(checkInScmResult);
-        assertTrue("Renamed file has not been commited !", checkInScmResult.getCheckedInFiles().size() != 0);
+        assertTrue("Renamed file has not been commited!", checkInScmResult.getCheckedInFiles().size() != 0);
     }
 
     // Test FileSet in configuration
@@ -152,6 +158,11 @@
         File whiskeyFile = new File( checkedOutRepo.getAbsolutePath(), "whiskey.xml" );
         FileUtils.fileWrite( whiskeyFile.getAbsolutePath(), "700 ml" );
 
+        if ( !ScmTestCase.isSystemCmd( "git" ) )
+        {
+            System.out.println( "Skip test which requires Git native executable to be in PATH" );
+            return;
+        }
 
         // Adding and commiting beer and whiskey
         AddScmResult addResult = getScmManager().add( scmRepository, new ScmFileSet( checkedOutRepo, "beer.xml,whiskey.xml" ) );
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkout/GitExeCheckOutCommandNoBranchTest.java b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkout/GitExeCheckOutCommandNoBranchTest.java
index b0ae87a..b141783 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkout/GitExeCheckOutCommandNoBranchTest.java
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/checkout/GitExeCheckOutCommandNoBranchTest.java
@@ -59,7 +59,7 @@
     {
         if ( !ScmTestCase.isSystemCmd( "git" ) )
         {
-            System.out.println( "skip test which git native executable in path" );
+            System.out.println( "Skip test which requires Git native executable to be in PATH" );
             return;
         }
         CheckOutScmResult result = checkoutRepo();
@@ -71,7 +71,7 @@
     {
         if ( !ScmTestCase.isSystemCmd( "git" ) )
         {
-            System.out.println( "skip test which git native executable in path" );
+            System.out.println( "Skip test which requires Git native executable to be in PATH" );
             return;
         }
         CheckOutScmResult result = checkoutRepo();