incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1188369 - in /incubator/accumulo: branches/1.3/src/start/src/test/java/org/apache/accumulo/start/Test.java trunk/src/start/src/test/java/org/apache/accumulo/start/Test.java
Date Mon, 24 Oct 2011 20:48:53 GMT
Author: vines
Date: Mon Oct 24 20:48:52 2011
New Revision: 1188369

URL: http://svn.apache.org/viewvc?rev=1188369&view=rev
Log:
fixes ACCUMULO-63  - the erroneous test will now make the dir if it doesn't exist instead
of panicking.

Modified:
    incubator/accumulo/branches/1.3/src/start/src/test/java/org/apache/accumulo/start/Test.java
    incubator/accumulo/trunk/src/start/src/test/java/org/apache/accumulo/start/Test.java

Modified: incubator/accumulo/branches/1.3/src/start/src/test/java/org/apache/accumulo/start/Test.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.3/src/start/src/test/java/org/apache/accumulo/start/Test.java?rev=1188369&r1=1188368&r2=1188369&view=diff
==============================================================================
--- incubator/accumulo/branches/1.3/src/start/src/test/java/org/apache/accumulo/start/Test.java
(original)
+++ incubator/accumulo/branches/1.3/src/start/src/test/java/org/apache/accumulo/start/Test.java
Mon Oct 24 20:48:52 2011
@@ -47,6 +47,8 @@ public class Test extends TestCase {
     String aHome = System.getenv("ACCUMULO_HOME");
     if (aHome == null) fail("ACCUMULO_HOME must be set");
     tmpDir = new File(aHome + "/lib/ext");
+    if (!tmpDir.exists())
+      tmpDir.mkdir();
     destJar = new File(tmpDir, "Test.jar");
     if (destJar.exists()) {
       destJar.delete();

Modified: incubator/accumulo/trunk/src/start/src/test/java/org/apache/accumulo/start/Test.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/trunk/src/start/src/test/java/org/apache/accumulo/start/Test.java?rev=1188369&r1=1188368&r2=1188369&view=diff
==============================================================================
--- incubator/accumulo/trunk/src/start/src/test/java/org/apache/accumulo/start/Test.java (original)
+++ incubator/accumulo/trunk/src/start/src/test/java/org/apache/accumulo/start/Test.java Mon
Oct 24 20:48:52 2011
@@ -47,6 +47,8 @@ public class Test extends TestCase {
     String aHome = System.getenv("ACCUMULO_HOME");
     if (aHome == null) fail("ACCUMULO_HOME must be set");
     tmpDir = new File(aHome + "/lib/ext");
+    if (!tmpDir.exists())
+      tmpDir.mkdir();
     destJar = new File(tmpDir, "Test.jar");
     if (destJar.exists()) {
       destJar.delete();



Mime
View raw message