Author: knoguchi
Date: Fri Dec  2 15:50:03 2016
New Revision: 1772367

URL: http://svn.apache.org/viewvc?rev=1772367&view=rev
Log:
PIG-5070: Allow Grunt e2e tests to run in parallel (knoguchi)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/test/e2e/pig/tests/grunt.conf

Modified: pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1772367&r1=1772366&r2=1772367&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Fri Dec  2 15:50:03 2016
@@ -63,6 +63,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-5070: Allow Grunt e2e tests to run in parallel (knoguchi)
+
 PIG-5061: ant test -Dtestcase=TestBoolean failing (knoguchi)
 
 PIG-5066: e2e Jython_Checkin_2 failing due to floating precision difference 
(knoguchi)

Modified: pig/trunk/test/e2e/pig/tests/grunt.conf
URL: 
http://svn.apache.org/viewvc/pig/trunk/test/e2e/pig/tests/grunt.conf?rev=1772367&r1=1772366&r2=1772367&view=diff
==============================================================================
--- pig/trunk/test/e2e/pig/tests/grunt.conf (original)
+++ pig/trunk/test/e2e/pig/tests/grunt.conf Fri Dec  2 15:50:03 2016
@@ -46,7 +46,12 @@ $cfg = {
                         'execonly' => 'mapred,tez', # don't have a clue what 
their cwd will be for local mode
                         'expected_out_regex' => "/user",
                         'rc' => 0
-
+                      },{
+                        'num' => 3,
+                        'pig' => "ls .",
+                        'execonly' => 'mapred,tez',
+                        'expected_out_regex' => "/user",
+                        'rc' => 0
                       },{
                         'num' => 4,
                         'pig' => "ls :INPATH:",
@@ -77,21 +82,22 @@ $cfg = {
                             'rc' => 0
                         },{
                             'num' => 10,
-                            'pig' => "cp :INPATH:/singlefile/studenttab10k .
-                                      ls .",
+                            'pig' => "mkdir :OUTPATH:
+                                      cp :INPATH:/singlefile/studenttab10k 
:OUTPATH:
+                                      ls :OUTPATH:",
                             'expected_out_regex' => ".*studenttab10k",
                             'rc' => 0
                         },{
                             'num' => 11,
-                            'pig' => "cp :INPATH:/singlefile/studenttab10k 
./fred
-                                      ls .",
+                            'pig' => "cp :INPATH:/singlefile/studenttab10k 
:OUTPATH:/fred
+                                      ls :OUTPATH:",
                             'expected_out_regex' => ".*fred",
                             'rc' => 0
                         },{
                             'num' => 12,
-                            'pig' => "cp :INPATH:/singlefile/studenttab10k 
./jim
-                                      mv ./jim ./bob
-                                      ls .",
+                            'pig' => "cp :INPATH:/singlefile/studenttab10k 
:OUTPATH:/jim
+                                      mv :OUTPATH:/jim :OUTPATH:/bob
+                                      ls :OUTPATH:",
                             'expected_out_regex' => ".*bob",
                             'rc' => 0
                         },{
@@ -103,18 +109,19 @@ $cfg = {
                         },{
                             'num' => 14,
                             'pig' => "copyToLocal 
:INPATH:/singlefile/votertab10k :TMP:
-                                      copyFromLocal :TMP:/votertab10k ./joe
-                                      cat ./joe",
+                                      copyFromLocal :TMP:/votertab10k 
:OUTPATH:/joe
+                                      cat :OUTPATH:/joe",
                             'expected_out_regex' => ":Grunt_14_output:",
                             'rc' => 0
                         },{
                             'num' => 15,
-                            'pig' => "rm fred bob joe",
-                            'not_expected_out_regex' => "joe",
+                            'pig' => "cp :INPATH:/singlefile/studenttab10k 
:OUTPATH:/fred
+                                      rm :OUTPATH:/fred",
+                            'not_expected_out_regex' => "fred",
                             'rc' => 0
                         },{
                             'num' => 16,
-                            'pig' => "rmf jill",
+                            'pig' => "rmf :OUTPATH:/jill",
                             'rc' => 0
                         }
                 ]


Reply via email to