You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2012/10/31 23:32:06 UTC

svn commit: r1404398 - in /pig/branches/branch-0.10: CHANGES.txt test/org/apache/pig/test/TestLoad.java

Author: daijy
Date: Wed Oct 31 22:32:05 2012
New Revision: 1404398

URL: http://svn.apache.org/viewvc?rev=1404398&view=rev
Log:
PIG-2942: DevTests, TestLoad has a false failure on Windows (jgordon via daijy)

Modified:
    pig/branches/branch-0.10/CHANGES.txt
    pig/branches/branch-0.10/test/org/apache/pig/test/TestLoad.java

Modified: pig/branches/branch-0.10/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/CHANGES.txt?rev=1404398&r1=1404397&r2=1404398&view=diff
==============================================================================
--- pig/branches/branch-0.10/CHANGES.txt (original)
+++ pig/branches/branch-0.10/CHANGES.txt Wed Oct 31 22:32:05 2012
@@ -36,6 +36,8 @@ PIG-2727: PigStorage Source tagging does
 
 BUG FIXES
 
+PIG-2942: DevTests, TestLoad has a false failure on Windows (jgordon via daijy)
+
 PIG-2943: DevTests, Refactor Windows checks to use new Util.WINDOWS method for code health (jgordon via dvryaboy)
 
 PIG-2801: grunt "sh" command should invoke the shell implicitly instead of calling exec directly with the command tokens

Modified: pig/branches/branch-0.10/test/org/apache/pig/test/TestLoad.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/test/org/apache/pig/test/TestLoad.java?rev=1404398&r1=1404397&r2=1404398&view=diff
==============================================================================
--- pig/branches/branch-0.10/test/org/apache/pig/test/TestLoad.java (original)
+++ pig/branches/branch-0.10/test/org/apache/pig/test/TestLoad.java Wed Oct 31 22:32:05 2012
@@ -90,8 +90,7 @@ public class TestLoad extends junit.fram
         pc = servers[0].getPigContext();
         String curDir = System.getProperty("user.dir");
         String inpDir = curDir + File.separatorChar + "test/org/apache/pig/test/data/InputFiles/";
-        if ((System.getProperty("os.name").toUpperCase().startsWith("WINDOWS")))
-            inpDir="/"+FileLocalizer.parseCygPath(inpDir, FileLocalizer.STYLE_WINDOWS);
+
         // copy passwd file to cluster and set that as the input location for the load
         Util.copyFromLocalToCluster(cluster, inpDir + "passwd", "passwd");
         FileSpec inpFSpec = new FileSpec("passwd", new FuncSpec(PigStorage.class.getName(), new String[]{":"}));