incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Test fix, checking for existance before asserting deletion.
Date Wed, 02 Jul 2014 17:37:55 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/apache-blur-0.2 4147f3588 -> ab850f92d


Test fix, checking for existance before asserting deletion.


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

Branch: refs/heads/apache-blur-0.2
Commit: ab850f92db134addc5e4885dc2e5ac00bc19b39d
Parents: 4147f35
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Jul 2 13:37:39 2014 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Jul 2 13:37:39 2014 -0400

----------------------------------------------------------------------
 .../org/apache/blur/mapreduce/lib/BlurOutputFormatTest.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ab850f92/blur-mapred-hadoop1/src/test/java/org/apache/blur/mapreduce/lib/BlurOutputFormatTest.java
----------------------------------------------------------------------
diff --git a/blur-mapred-hadoop1/src/test/java/org/apache/blur/mapreduce/lib/BlurOutputFormatTest.java
b/blur-mapred-hadoop1/src/test/java/org/apache/blur/mapreduce/lib/BlurOutputFormatTest.java
index 96723c8..b3875d8 100644
--- a/blur-mapred-hadoop1/src/test/java/org/apache/blur/mapreduce/lib/BlurOutputFormatTest.java
+++ b/blur-mapred-hadoop1/src/test/java/org/apache/blur/mapreduce/lib/BlurOutputFormatTest.java
@@ -98,8 +98,12 @@ public class BlurOutputFormatTest {
   @Before
   public void setup() throws IllegalArgumentException, IOException {
     TableContext.clear();
-    assertTrue(localFs.delete(new Path(TEST_ROOT_DIR + "/in"), true));
-    assertTrue(localFs.delete(new Path(TEST_ROOT_DIR + "/out"), true));
+    if (localFs.exists(inDir)) {
+      assertTrue(localFs.delete(inDir, true));
+    }
+    if (localFs.exists(outDir)) {
+      assertTrue(localFs.delete(outDir, true));
+    }
   }
 
   @Test


Mime
View raw message