lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [lucene-solr] branch master updated: SOLR-14217: tests respect tests.workDir correctly (prevent SSD destruction)
Date Mon, 27 Jan 2020 11:07:43 GMT
This is an automated email from the ASF dual-hosted git repository.

rmuir pushed a commit to branch master
in repository

The following commit(s) were added to refs/heads/master by this push:
     new 5f964ee  SOLR-14217: tests respect tests.workDir correctly (prevent SSD destruction)
5f964ee is described below

commit 5f964eeef2fe4ebb65fc4053f62e2916f4ae6b33
Author: Robert Muir <>
AuthorDate: Mon Jan 27 06:07:31 2020 -0500

    SOLR-14217: tests respect tests.workDir correctly (prevent SSD destruction)
 solr/test-framework/src/java/org/apache/solr/ | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/solr/test-framework/src/java/org/apache/solr/ b/solr/test-framework/src/java/org/apache/solr/
index 585f3bc..c7e8637 100644
--- a/solr/test-framework/src/java/org/apache/solr/
+++ b/solr/test-framework/src/java/org/apache/solr/
@@ -143,6 +143,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;
@@ -285,6 +286,8 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {
         new SolrjNamedThreadFactory("testExecutor"),
+    // 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()

View raw message