[NPANDAY-525] fix tests for bash

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1619706 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy b/components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy
index 1024b18..0facb08 100644
--- a/components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy
+++ b/components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy
@@ -89,13 +89,16 @@
     public void testCommandArgWithSpaces()
     throws ExecutionException
     {
-        testArgExpansion(["a b"], '"a b\"');
+        testArgExpansion(["a b"], stripQuotes('"a b\"'));
     }
 
     @Test
     public void testCommandArgWithEmbeddedSingleQuotes_middle()
     throws ExecutionException
     {
+        // Not supported by *nix single quoting
+      if (!isWindows()) return;
+
         testArgExpansion(["a ' b"], '"a \' b"');
     }
 
@@ -417,4 +420,12 @@
     {
        return Os.isFamily(Os.FAMILY_WINDOWS);
     }
+
+  private static String stripQuotes(String s) {
+    // On bash, surrounding quotes are not shown by echo
+    if (!isWindows()) {
+      s = s.substring( 1, s.length() - 1 );
+    }
+    return s;
+  }
 }
\ No newline at end of file