crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkw...@apache.org
Subject git commit: CRUNCH-205: Delete superfluous build directory during integration tests
Date Mon, 22 Jul 2013 18:04:33 GMT
Updated Branches:
  refs/heads/master a708e8068 -> b54ce84e7


CRUNCH-205: Delete superfluous build directory during integration tests

Signed-off-by: Micah Whitacre <mkwhit@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/crunch/commit/b54ce84e
Tree: http://git-wip-us.apache.org/repos/asf/crunch/tree/b54ce84e
Diff: http://git-wip-us.apache.org/repos/asf/crunch/diff/b54ce84e

Branch: refs/heads/master
Commit: b54ce84e7b1cbc08cfe1431c7033622d13a7a7d3
Parents: a708e80
Author: Micah Whitacre <mkwhit@apache.org>
Authored: Mon Jul 22 12:51:14 2013 -0500
Committer: Micah Whitacre <mkwhit@apache.org>
Committed: Mon Jul 22 12:53:23 2013 -0500

----------------------------------------------------------------------
 .../it/java/org/apache/crunch/io/hbase/WordCountHBaseIT.java    | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/crunch/blob/b54ce84e/crunch-hbase/src/it/java/org/apache/crunch/io/hbase/WordCountHBaseIT.java
----------------------------------------------------------------------
diff --git a/crunch-hbase/src/it/java/org/apache/crunch/io/hbase/WordCountHBaseIT.java b/crunch-hbase/src/it/java/org/apache/crunch/io/hbase/WordCountHBaseIT.java
index f4e1789..6375ea1 100644
--- a/crunch-hbase/src/it/java/org/apache/crunch/io/hbase/WordCountHBaseIT.java
+++ b/crunch-hbase/src/it/java/org/apache/crunch/io/hbase/WordCountHBaseIT.java
@@ -30,6 +30,7 @@ import java.util.Random;
 import java.util.jar.JarEntry;
 import java.util.jar.JarOutputStream;
 
+import org.apache.commons.io.FileUtils;
 import org.apache.crunch.DoFn;
 import org.apache.crunch.Emitter;
 import org.apache.crunch.MapFn;
@@ -213,6 +214,10 @@ public class WordCountHBaseIT {
     hbaseTestUtil.shutdownMiniMapReduceCluster();
     hbaseTestUtil.shutdownMiniCluster();
     hbaseTestUtil.shutdownMiniZKCluster();
+
+    //Delete the build directory that gets created in the root of the project when starting
+    //the MiniMapReduceCluster
+    FileUtils.deleteDirectory(new File("build"));
   }
 
   public void run(Pipeline pipeline) throws IOException {


Mime
View raw message