Apache Lucene open-source search software
tests: start w/ absolute path to find solr root
Yonik Seeley5e009c8a1739
diff --git a/solr/src/test/org/apache/solr/SolrTestCaseJ4.java b/solr/src/test/org/apache/solr/SolrTestCaseJ4.javaindex 2906e46c630..9eb858da5a6 100755--- a/solr/src/test/org/apache/solr/SolrTestCaseJ4.java+++ b/solr/src/test/org/apache/solr/SolrTestCaseJ4.java@@ -1052,7 +1052,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {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();}