mirror of https://github.com/apache/lucene.git
SOLR-14217: tests respect tests.workDir correctly (prevent SSD destruction)
This commit is contained in:
parent
2fd904e3d0
commit
0cc67223a8
|
@ -144,6 +144,7 @@ import org.apache.solr.servlet.DirectSolrConnection;
|
|||
import org.apache.solr.update.processor.DistributedUpdateProcessor;
|
||||
import org.apache.solr.update.processor.DistributedZkUpdateProcessor;
|
||||
import org.apache.solr.update.processor.UpdateRequestProcessor;
|
||||
import org.apache.solr.util.ExternalPaths;
|
||||
import org.apache.solr.util.LogLevel;
|
||||
import org.apache.solr.util.RandomizeSSL;
|
||||
import org.apache.solr.util.RandomizeSSL.SSLRandomizer;
|
||||
|
@ -286,6 +287,8 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {
|
|||
new SolrjNamedThreadFactory("testExecutor"),
|
||||
true);
|
||||
|
||||
// set solr.install.dir needed by some test configs outside of the test sandbox (!)
|
||||
System.setProperty("solr.install.dir", ExternalPaths.SOURCE_HOME);
|
||||
// not strictly needed by this class at this point in the control lifecycle, but for
|
||||
// backcompat create it now in case any third party tests expect initCoreDataDir to be
|
||||
// non-null after calling setupTestCases()
|
||||
|
|
Loading…
Reference in New Issue