mirror of https://github.com/apache/lucene.git
SOLR-10024: If you use ExternalPaths#determineSourceHome with a custom tests.workDir, tests may not find the path.
This commit is contained in:
parent
72eaeab715
commit
98a5a81378
|
@ -1060,6 +1060,8 @@
|
|||
<!-- turn jenkins blood red for hashmap bugs, even on jdk7 -->
|
||||
<sysproperty key="jdk.map.althashing.threshold" value="0"/>
|
||||
|
||||
<sysproperty key="tests.src.home" value="${user.dir}" />
|
||||
|
||||
<!-- Only pass these to the test JVMs if defined in ANT. -->
|
||||
<syspropertyset>
|
||||
<propertyref prefix="tests.maxfailures" />
|
||||
|
|
|
@ -63,7 +63,7 @@ public class ExternalPaths {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
// If there is no "solr/conf" in the classpath, fall back to searching from the current directory.
|
||||
file = new File(".");
|
||||
file = new File(System.getProperty("tests.src.home", "."));
|
||||
}
|
||||
File base = file.getAbsoluteFile();
|
||||
while (!(new File(base, "solr/CHANGES.txt").exists()) && null != base) {
|
||||
|
|
Loading…
Reference in New Issue