Author: xuefu
Date: Fri Jan  2 15:47:17 2015
New Revision: 1649068

URL: http://svn.apache.org/r1649068
Log:
PIG-4361: Fix perl script problem in TestStreaming.java (Liyun via Xuefu)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/test/org/apache/pig/test/TestStreaming.java

Modified: pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1649068&r1=1649067&r2=1649068&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Fri Jan  2 15:47:17 2015
@@ -30,6 +30,8 @@ PIG-4333: Split BigData tests into multi
  
 BUG FIXES
 
+PIG-4361: Fix perl script problem in TestStreaming.java (liyun via xuefu)
+
 PIG-4354: Port local mode tests to Tez - part3 (daijy)
 
 PIG-4338: Fix test failures with JDK8 (rohini)

Modified: pig/trunk/test/org/apache/pig/test/TestStreaming.java
URL: 
http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/TestStreaming.java?rev=1649068&r1=1649067&r2=1649068&view=diff
==============================================================================
--- pig/trunk/test/org/apache/pig/test/TestStreaming.java (original)
+++ pig/trunk/test/org/apache/pig/test/TestStreaming.java Fri Jan  2 15:47:17 
2015
@@ -494,8 +494,8 @@ public class TestStreaming {
            String[] script =
                new String[] {
                              "#!/usr/bin/perl",
-                          "open(OUTFILE, \">\", $ARGV[0]) or die \"Can't open 
\".$ARGV[1].\"!: $!\";",
-                          "open(OUTFILE2, \">\", $ARGV[1]) or die \"Can't open 
\".$ARGV[2].\"!: $!\";",
+                          "open(OUTFILE, \">\", $ARGV[0]) or die \"Can't open 
\".$ARGV[0].\"!: $!\";",
+                          "open(OUTFILE2, \">\", $ARGV[1]) or die \"Can't open 
\".$ARGV[1].\"!: $!\";",
                           "while (<STDIN>) {",
                           "  print OUTFILE \"$_\n\";",
                           "  print STDERR \"STDERR: $_\n\";",
@@ -554,8 +554,8 @@ public class TestStreaming {
            String[] script =
                new String[] {
                              "#!/usr/bin/perl",
-                          "open(OUTFILE, \">\", $ARGV[0]) or die \"Can't open 
\".$ARGV[1].\"!: $!\";",
-                          "open(OUTFILE2, \">\", $ARGV[1]) or die \"Can't open 
\".$ARGV[2].\"!: $!\";",
+                          "open(OUTFILE, \">\", $ARGV[0]) or die \"Can't open 
\".$ARGV[0].\"!: $!\";",
+                          "open(OUTFILE2, \">\", $ARGV[1]) or die \"Can't open 
\".$ARGV[1].\"!: $!\";",
                           "while (<STDIN>) {",
                           "  print OUTFILE \"$_\n\";",
                           "  print STDERR \"STDERR: $_\n\";",


Reply via email to