You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/04/11 12:09:15 UTC

[maven-release] branch windows created (now 1f46d56)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch windows
in repository https://gitbox.apache.org/repos/asf/maven-release.git.


      at 1f46d56  adjust expected test result to account for different operating systems

This branch includes the following new commits:

     new 1f46d56  adjust expected test result to account for different operating systems

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-release] 01/01: adjust expected test result to account for different operating systems

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch windows
in repository https://gitbox.apache.org/repos/asf/maven-release.git

commit 1f46d56894c99f080494369bdf5d403151e02078
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Apr 11 08:08:56 2020 -0400

    adjust expected test result to account for different operating systems
---
 .../org/apache/maven/shared/release/exec/CommandLineFactoryTest.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/exec/CommandLineFactoryTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/exec/CommandLineFactoryTest.java
index 762eaf4..f7c750a 100644
--- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/exec/CommandLineFactoryTest.java
+++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/exec/CommandLineFactoryTest.java
@@ -22,6 +22,8 @@ package org.apache.maven.shared.release.exec;
 import org.codehaus.plexus.PlexusTestCase;
 import org.codehaus.plexus.util.cli.Commandline;
 
+import java.util.Locale;
+
 /**
  * Test the command line factory.
  *
@@ -46,7 +48,8 @@ public class CommandLineFactoryTest
     {
         Commandline cl = factory.createCommandLine( "exec" );
 
-        assertEquals( "Check executable", "'exec'", cl.getExecutable() );
+        String expected = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("win") ? "exec" : "'exec'";
+        assertEquals( "Check executable", expected, cl.getExecutable() );
         assertNotNull( "Check environment", cl.getEnvironmentVariables() );
         assertFalse( "Check environment", cl.getEnvironmentVariables().length == 0 );
     }