BIGTOP-903. crunch integration tests need to clean up output directory before each individual subtask is run
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/de808080 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/de808080 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/de808080 Branch: refs/heads/master Commit: de808080725d028a8c695d18ee654bc449e11165 Parents: 2b35a92 Author: Roman Shaposhnik <[email protected]> Authored: Thu Apr 4 13:53:46 2013 -0700 Committer: Roman Shaposhnik <[email protected]> Committed: Thu Apr 4 13:57:20 2013 -0700 ---------------------------------------------------------------------- .../itest/crunchsmoke/TestCrunchSmoke.groovy | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/de808080/bigtop-tests/test-artifacts/crunch/src/main/groovy/org/apache/bigtop/itest/crunchsmoke/TestCrunchSmoke.groovy ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/crunch/src/main/groovy/org/apache/bigtop/itest/crunchsmoke/TestCrunchSmoke.groovy b/bigtop-tests/test-artifacts/crunch/src/main/groovy/org/apache/bigtop/itest/crunchsmoke/TestCrunchSmoke.groovy index 5dd94fd..7b7012c 100644 --- a/bigtop-tests/test-artifacts/crunch/src/main/groovy/org/apache/bigtop/itest/crunchsmoke/TestCrunchSmoke.groovy +++ b/bigtop-tests/test-artifacts/crunch/src/main/groovy/org/apache/bigtop/itest/crunchsmoke/TestCrunchSmoke.groovy @@ -50,6 +50,7 @@ public class TestCrunchSmoke { ]; private void _runExampleJobs(String algorithm) { + sh.exec("hadoop fs -rmr ${EXAMPLES_OUT}"); sh.exec("${runnerScript} ${crunchJar}" + " org.apache.crunch.examples.${algorithm}" + " ${examples.get(algorithm)}"
