PIG-5070: Allow Grunt e2e tests to run in parallel (knoguchi)
git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1772367 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 0120bb2..fefdf6c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -63,6 +63,8 @@
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)
diff --git a/test/e2e/pig/tests/grunt.conf b/test/e2e/pig/tests/grunt.conf
index 79cb6a9..9c794d4 100644
--- a/test/e2e/pig/tests/grunt.conf
+++ b/test/e2e/pig/tests/grunt.conf
@@ -46,7 +46,12 @@
'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 @@
'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 @@
},{
'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
}
]