You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2011/01/05 22:57:30 UTC

svn commit: r1055659 - /lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java

Author: yonik
Date: Wed Jan  5 21:57:30 2011
New Revision: 1055659

URL: http://svn.apache.org/viewvc?rev=1055659&view=rev
Log:
tests: start w/ absolute path to find solr root

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java?rev=1055659&r1=1055658&r2=1055659&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/SolrTestCaseJ4.java Wed Jan  5 21:57:30 2011
@@ -1052,7 +1052,7 @@ public abstract class SolrTestCaseJ4 ext
   static String determineSourceHome() {
     // ugly, ugly hack to determine the example home without depending on the CWD
     // this is needed for example/multicore tests which reside outside the classpath
-    File base = getFile("solr/conf/");
+    File base = getFile("solr/conf/").getAbsoluteFile();
     while (!new File(base, "solr/CHANGES.txt").exists()) {
       base = base.getParentFile();
     }